sh_eth: fix descriptor access endianness
authorSergei Shtylyov <[email protected]>
Sun, 13 Dec 2015 20:05:07 +0000 (23:05 +0300)
committerDavid S. Miller <[email protected]>
Tue, 15 Dec 2015 05:25:00 +0000 (00:25 -0500)
commit1299653affa453bd0bdcd8112ffa392d4ba334e6
treee58c63ccb5a5f1365fb04da8023e97a0e2d18cbd
parent3e2309937f1e5d538ff13da5fb8de41196927c61
sh_eth: fix descriptor access endianness

The driver never  calls cpu_to_edmac() when writing the descriptor address
and edmac_to_cpu() when reading it, although it should -- fix this.

Note that the frame/buffer length descriptor field accesses also need fixing
but since they are both 16-bit we can't  use {cpu|edmac}_to_{edmac|cpu}()...

Signed-off-by: Sergei Shtylyov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/renesas/sh_eth.c