]> git.baikalelectronics.ru Git - kernel.git/commit
net: gemini: Clean up phy registration
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 6 Sep 2020 19:21:13 +0000 (21:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 6 Sep 2020 19:27:00 +0000 (12:27 -0700)
commitff650bfdba1e0bbb3ac684272cc8a4cc73bf98c0
tree02eba79104372eba20d176eee2664b5b6733e04d
parenta7c72f7ee989d917dff256bb5b7035b644a26cf5
net: gemini: Clean up phy registration

It's nice if the phy is online before we register the netdev
so try to do that first.

Stop trying to do "second tried" to register the phy, it
works perfectly fine the first time.

Stop remvoving the phy in uninit. Remove it when the
driver is remove():d, symmetric to where it is added, in
probe().

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cortina/gemini.c