sh_eth: use EDMR_SRST_GETHER in sh_eth_check_reset()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 24 Apr 2016 20:45:23 +0000 (23:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 20:07:20 +0000 (16:07 -0400)
commit97717edc69eabdcc8b1859af75a363790c3e9cb6
tree9f5c06c67bcdafa86fd38f29a4e6b2284e603b8f
parent3ccec4bd10c95bbd8729b1edebef887b666905bf
sh_eth: use EDMR_SRST_GETHER in sh_eth_check_reset()

sh_eth_check_reset() uses a bare number where EDMR_SRST_GETHER would fit,
i.e. the receive/trasmit software reset bits that comprise EDMR_SRST_GETHER
read as 1  while the corresponding reset is in progress and thus, when both
are 0, the reset is complete.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c