net: meson: fixup g12a glue ephy id
authorJerome Brunet <jbrunet@baylibre.com>
Sun, 12 May 2019 21:12:37 +0000 (23:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 May 2019 16:12:19 +0000 (09:12 -0700)
The phy id chosen by Amlogic is incorrectly set in the mdio mux and
does not match the phy driver.

It was not detected before because DT forces the use the correct driver
for the internal PHY.

Fixes: 7090425104db ("net: phy: add amlogic g12a mdio mux support")
Reported-by: Qi Duan <qi.duan@amlogic.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mux-meson-g12a.c

index 6fa29ea8e2a363f99d45eae647d78025eb831baf..6644762ff2abb39b05baa98bd80046ddc250000f 100644 (file)
@@ -33,7 +33,7 @@
 #define ETH_PLL_CTL7           0x60
 
 #define ETH_PHY_CNTL0          0x80
-#define   EPHY_G12A_ID         0x33000180
+#define   EPHY_G12A_ID         0x33010180
 #define ETH_PHY_CNTL1          0x84
 #define  PHY_CNTL1_ST_MODE     GENMASK(2, 0)
 #define  PHY_CNTL1_ST_PHYADD   GENMASK(7, 3)