sh_eth: add sh_eth_cpu_data::soft_reset() method
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 24 Mar 2018 20:07:41 +0000 (23:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 16:34:19 +0000 (12:34 -0400)
commit4ceedeb1b68e376ccfec9f8d2e46bcd541702aba
tree658ae8662c1eebb8a014aa4ecff73796c408dc53
parent93e9ad985038f269838c4c5deab4c84d87c7b5a7
sh_eth: add sh_eth_cpu_data::soft_reset() method

sh_eth_reset() performs a software reset which is implemented in a
completely different way for the GEther-like controllers vs the other
controllers due to a different layout of EDMR (and other factors) --
it therefore makes sense to convert this function to a mandatory
sh_eth_cpu_data::soft_reset() method and thus get rid of the runtime
controller type check via sh_eth_is_{gether|rz_fast_ether}().

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