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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Feb 2019 08:05:58 +0000 (09:05 +0100)
commit702a82d4cf1a12b4863f7006558e7decad7891f7
tree5ea43a553905bf249d94bb44ef9cc13b1e70a963
parentf82f26a04c3735a8853d4e4701afedd99fb1c1e3
net: stmmac: handle endianness in dwmac4_get_timestamp

[ Upstream commit 224babd62d6f19581757a6d8bae3bf9501fc10de ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c