lantiq: fix phys led
authorAleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
Wed, 11 Dec 2019 18:11:42 +0000 (19:11 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 23 Dec 2019 00:06:28 +0000 (01:06 +0100)
led2l and led2h value is incorrectly set by led3l and led3h.
Bug was introduced in commit: 863e79f8d5544a8a884375d7e867f350fddca9b9

Signed-off-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
Fixes: 863e79f8d554 ("lantiq: add support for kernel 4.9")
(cherry picked from commit 692390225d76de8f2daf582454e74942b82d090a)

target/linux/lantiq/patches-4.14/0023-NET-PHY-add-led-support-for-intel-xway.patch
target/linux/lantiq/patches-4.9/0023-NET-PHY-adds-driver-for-lantiq-PHY11G.patch

index 068684282158bbcf4c652c444a925ebba395b347..bfc8a742317ef5fbbd8f6eb93e685e476d5ac0c5 100644 (file)
@@ -42,10 +42,10 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +              phy_write_mmd(phydev, MDIO_MMD_VEND2, XWAY_MMD_LED1L, tmp);
 +
 +      if (!of_property_read_u32(phydev->mdio.dev.of_node, "lantiq,led2h", &tmp))
-+              phy_write_mmd(phydev, MDIO_MMD_VEND2, XWAY_MMD_LED3H,  tmp);
++              phy_write_mmd(phydev, MDIO_MMD_VEND2, XWAY_MMD_LED2H,  tmp);
 +
 +      if (!of_property_read_u32(phydev->mdio.dev.of_node, "lantiq,led2l", &tmp))
-+              phy_write_mmd(phydev, MDIO_MMD_VEND2, XWAY_MMD_LED3L, tmp);
++              phy_write_mmd(phydev, MDIO_MMD_VEND2, XWAY_MMD_LED2L, tmp);
 +
 +      if (!of_property_read_u32(phydev->mdio.dev.of_node, "lantiq,led3h", &tmp))
 +              phy_write_mmd(phydev, MDIO_MMD_VEND2, XWAY_MMD_LED3H, tmp);
index e915277599de29b257275b28532c0437571a0200..48b6fd3f881fd813b62d57c78748f495772dcbff 100644 (file)
@@ -42,10 +42,10 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +              phy_write_mmd_indirect(phydev, XWAY_MMD_LED1L, MDIO_MMD_VEND2, tmp);
 +
 +      if (!of_property_read_u32(phydev->mdio.dev.of_node, "lantiq,led2h", &tmp))
-+              phy_write_mmd_indirect(phydev, XWAY_MMD_LED3H, MDIO_MMD_VEND2, tmp);
++              phy_write_mmd_indirect(phydev, XWAY_MMD_LED2H, MDIO_MMD_VEND2, tmp);
 +
 +      if (!of_property_read_u32(phydev->mdio.dev.of_node, "lantiq,led2l", &tmp))
-+              phy_write_mmd_indirect(phydev, XWAY_MMD_LED3L, MDIO_MMD_VEND2, tmp);
++              phy_write_mmd_indirect(phydev, XWAY_MMD_LED2L, MDIO_MMD_VEND2, tmp);
 +
 +      if (!of_property_read_u32(phydev->mdio.dev.of_node, "lantiq,led3h", &tmp))
 +              phy_write_mmd_indirect(phydev, XWAY_MMD_LED3H, MDIO_MMD_VEND2, tmp);