[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230314131443.46342-5-wsa+renesas@sang-engineering.com>
Date: Tue, 14 Mar 2023 14:14:42 +0100
From: Wolfram Sang <wsa+renesas@...g-engineering.com>
To: netdev@...r.kernel.org
Cc: linux-renesas-soc@...r.kernel.org, kernel@...gutronix.de,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Steve Glendinning <steve.glendinning@...well.net>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, linux-kernel@...r.kernel.org
Subject: [PATCH net-next 4/4] smsc911x: add FIXME to move 'mac_managed_pm' to probe
On Renesas hardware, we had issues because the above flag was set during
'open'. It was concluded that it needs to be set during 'probe'. It
looks like SMS911x needs the same fix but I can't test it because I
don't have the hardware. At least, leave a note about the issue.
Signed-off-by: Wolfram Sang <wsa+renesas@...g-engineering.com>
---
drivers/net/ethernet/smsc/smsc911x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index a2e511912e6a..745e0180eb34 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -1038,6 +1038,7 @@ static int smsc911x_mii_probe(struct net_device *dev)
}
/* Indicate that the MAC is responsible for managing PHY PM */
+ /* FIXME: should be set right after mdiobus is registered */
phydev->mac_managed_pm = true;
phy_attached_info(phydev);
--
2.30.2
Powered by blists - more mailing lists