Skip to content

Commit 9a9ae18

Browse files
committed
phy: mtk: disable powerdomain part in 2g5 driver
1 parent 64af56d commit 9a9ae18

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/net/phy/mediatek-2p5ge.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static int mt7988_2p5ge_phy_config_init(struct phy_device *phydev)
9898
struct pinctrl *pinctrl;
9999

100100
if (!phy_priv->fw_loaded) {
101-
pm_dev = dev_pm_domain_attach_by_name(dev, "i2p5gbe-pd");
101+
/*pm_dev = dev_pm_domain_attach_by_name(dev, "i2p5gbe-pd");
102102
if (IS_ERR(pm_dev)) {
103103
ret = PTR_ERR(pm_dev);
104104
dev_err(dev, "failed to get i2p5g pm-domain: %d\n", ret);
@@ -110,7 +110,7 @@ static int mt7988_2p5ge_phy_config_init(struct phy_device *phydev)
110110
/* We need to add 1 to power domain counter first so that
111111
* we can correctly power off internal 2.5Gphy
112112
*/
113-
ret = pm_runtime_get_sync(pm_dev);
113+
/*ret = pm_runtime_get_sync(pm_dev);
114114
if (ret < 0) {
115115
dev_err(&phydev->mdio.dev, "failed to power on!\n");
116116
return ret;
@@ -120,7 +120,7 @@ static int mt7988_2p5ge_phy_config_init(struct phy_device *phydev)
120120
if (ret < 0) {
121121
dev_err(&phydev->mdio.dev, "failed to power on!\n");
122122
return ret;
123-
}
123+
}*/
124124

125125
np = of_find_compatible_node(NULL, NULL, "mediatek,2p5gphy-fw");
126126
if (!np)

0 commit comments

Comments
 (0)