sh_eth: fix descriptor access endianness
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 13 Dec 2015 20:05:07 +0000 (23:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
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 <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c