net: mdio-mux-meson-g12a: force internal PHY off on mux switch
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 24 Jan 2023 10:11:57 +0000 (11:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:49 +0000 (08:34 +0100)
commit37f21dc8a489a29406ee053ca48c96cbbb709909
tree0ab4c08b806b051390cd1f7dff8a890d2f494e56
parenta4bbf0311755abc26d38afc7b4cb4ce124e5785f
net: mdio-mux-meson-g12a: force internal PHY off on mux switch

[ Upstream commit 7083df59abbc2b7500db312cac706493be0273ff ]

Force the internal PHY off then on when switching to the internal path.
This fixes problems where the PHY ID is not properly set.

Fixes: 7090425104db ("net: phy: add amlogic g12a mdio mux support")
Suggested-by: Qi Duan <qi.duan@amlogic.com>
Co-developed-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20230124101157.232234-1-jbrunet@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/mdio/mdio-mux-meson-g12a.c