commit | 4012e7d09d99b62d80046790657c0b0e32310d50 | [log] [tgz] |
---|---|---|
author | Alexandre Torgue <alexandre.torgue@st.com> | Fri Feb 15 10:49:09 2019 +0100 |
committer | David S. Miller <davem@davemloft.net> | Sun Feb 17 15:37:40 2019 -0800 |
tree | 9e47ef841115cae3cbb8719ff05bc8997d843ab4 | |
parent | 31a1b8d528fa4aedaa207b38d7fafc4e9b0a0d6c [diff] |
net: stmmac: handle endianness in dwmac4_get_timestamp GMAC IP is little-endian and used on several kind of CPU (big or little endian). Main callbacks functions of the stmmac drivers take care about it. It was not the case for dwmac4_get_timestamp function. Fixes: ba1ffd74df74 ("stmmac: fix PTP support for GMAC4") Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>