[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230314131443.46342-4-wsa+renesas@sang-engineering.com>
Date: Tue, 14 Mar 2023 14:14:41 +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>,
Wei Fang <wei.fang@....com>,
Shenwei Wang <shenwei.wang@....com>,
Clark Wang <xiaoning.wang@....com>,
NXP Linux Team <linux-imx@....com>,
"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 3/4] fec: 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 FEC 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/freescale/fec_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index c73e25f8995e..b16f56208d66 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -2318,6 +2318,7 @@ static int fec_enet_mii_probe(struct net_device *ndev)
fep->link = 0;
fep->full_duplex = 0;
+ /* FIXME: should be set right after mdiobus is registered */
phy_dev->mac_managed_pm = true;
phy_attached_info(phy_dev);
--
2.30.2
Powered by blists - more mailing lists