We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3b22c4 commit 8a90cb9Copy full SHA for 8a90cb9
drivers/net/phy/mediatek/mtk-2p5ge.c
@@ -663,10 +663,13 @@ static int mt798x_2p5ge_phy_probe(struct phy_device *phydev)
663
664
u16 polarity=MTK_PHY_LED_ON_POLARITY;
665
666
+ struct device_node *of_node = phydev->mdio.dev.of_node;
667
+ if (of_property_read_bool(of_node, "active-low"))
668
+ polarity=0;
669
+
670
switch (phydev->drv->phy_id) {
671
case MTK_2P5GPHY_ID_MT7987:
672
ret = mt7987_2p5ge_phy_load_fw(phydev);
- polarity=0;
673
phy_set_bits_mmd(phydev, MDIO_MMD_VEND2, MTK_PHY_LED0_ON_CTRL,
674
polarity);
675
dev_err(&phydev->mdio.dev, "DEBUG: mt7987 detected!\n");
0 commit comments