Re: [net-next] net: stmmac: handle endianness in dwmac4_get_timestamp

2019-02-15 Thread Alexandre Torgue
On 2/14/19 7:09 PM, Florian Fainelli wrote: On 2/14/19 9:26 AM, Alexandre Torgue wrote: 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.

Re: [net-next] net: stmmac: handle endianness in dwmac4_get_timestamp

2019-02-14 Thread Florian Fainelli
On 2/14/19 9:26 AM, Alexandre Torgue wrote: > 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. This is clearly a bugfix, so you should be ta

[net-next] net: stmmac: handle endianness in dwmac4_get_timestamp

2019-02-14 Thread Alexandre Torgue
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. Signed-off-by: Alexandre Torgue diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs