]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: reuse sh_eth_chip_reset()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 7 May 2016 21:09:01 +0000 (14:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2016 04:15:23 +0000 (00:15 -0400)
commit7c47152586ba5c6d363ce916b25e395be5a64557
treeda7a5e9ca84fca47cd9847938cf4f7c1d385de58
parent6fc567e4b3808bb3fb16f95c37408298081b3abf
sh_eth: reuse sh_eth_chip_reset()

All the chip_reset() methods repeat the code writing to the ARSTR register
and delaying for 1 ms, so that we can reuse sh_eth_chip_reset() twice.

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