sh_eth: add sh_eth_cpu_data::edtrr_trns value
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 24 Mar 2018 20:08:42 +0000 (23:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 16:34:19 +0000 (12:34 -0400)
commit3e416992e2fae2c3177bed157534503691dc3510
tree967aa5f86a8b8f9250d85ac5b8e25f4b3d8bc3eb
parent4ceedeb1b68e376ccfec9f8d2e46bcd541702aba
sh_eth: add sh_eth_cpu_data::edtrr_trns value

sh_eth_get_edtrr_trns() returns the value to be written to EDTRR in order
to start TX DMA -- this value is different between the GEther-like and
the other controllers. We can replace this function (and thus get rid of
the calls to sh_eth_is_{gether|rz_fast_ether}() by it) with a new field
'edtrr_trns' in the 'struct sh_eth_cpu_data'.

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
drivers/net/ethernet/renesas/sh_eth.h