Skip to content
Snippets Groups Projects
Commit 69239022 authored by Aleksander Jan Bajkowski's avatar Aleksander Jan Bajkowski Committed by Hauke Mehrtens
Browse files

lantiq: fix phys led


led2l and led2h value is incorrectly set by led3l and led3h.
Bug was introduced in commit: 863e79f8

Signed-off-by: default avatarAleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
Fixes: 863e79f8 ("lantiq: add support for kernel 4.9")
parent 97af1fc9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment