]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: handle endianness in dwmac4_get_timestamp
authorAlexandre Torgue <alexandre.torgue@st.com>
Fri, 15 Feb 2019 09:49:09 +0000 (10:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 23:37:40 +0000 (15:37 -0800)
commitd98da8412c66c95a44da70ff4d194c853b077ba8
tree9e47ef841115cae3cbb8719ff05bc8997d843ab4
parentbec6775a74156a223963a3a28983ba1deb78efd8
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: 1fef308879cc ("stmmac: fix PTP support for GMAC4")
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c