]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NET: dwmac: Make dwmac reset unconditional
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Tue, 18 Jul 2017 14:07:15 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2017 20:52:19 +0000 (13:52 -0700)
commit90f522a20e3d16d153e5a5f84cf4ff92281ee417
tree8689cc72840e1800248438b9f1c8995ebeb972b5
parent63679112c536289826fec61c917621de95ba2ade
NET: dwmac: Make dwmac reset unconditional

Unconditional reset dwmac before HW init if reset controller is present.

In existing implementation we reset dwmac only after second module
probing:
(module load -> unload -> load again [reset happens])

Now we reset dwmac at every module load:
(module load [reset happens] -> unload -> load again [reset happens])

Also some reset controllers have only reset callback instead of
assert + deassert callbacks pair, so handle this case.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c