]> git.baikalelectronics.ru Git - kernel.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)
commit6ceaf21650238dab9d42206d0c4c2b7d62f1d572
tree8689cc72840e1800248438b9f1c8995ebeb972b5
parent418ef81a92ea22c4dc0457ed6ced6b4d03bc83f5
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