[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5050D7292AC40763+20230605095527.57898-4-mengyuanlou@net-swift.com>
Date: Mon, 5 Jun 2023 17:52:52 +0800
From: Mengyuan Lou <mengyuanlou@...-swift.com>
To: netdev@...r.kernel.org
Cc: jiawenwu@...stnetic.com,
Mengyuan Lou <mengyuanlou@...-swift.com>
Subject: [RFC,PATCH net-next 3/3] net: ngbe: add support for ncsi nics
Pass ncsi_enabled through netdev to phy_supsend().
when ncsi_enabled is on, phy should not to supsend.
Signed-off-by: Mengyuan Lou <mengyuanlou@...-swift.com>
---
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
index 5d013ac3acd1..37d5e1f12d19 100644
--- a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
+++ b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
@@ -629,6 +629,7 @@ static int ngbe_probe(struct pci_dev *pdev,
device_set_wakeup_enable(&pdev->dev, wx->wol);
netdev->wol_enabled = wx->wol_enabled;
+ netdev->ncsi_enabled = wx->ncsi_enabled;
/* Save off EEPROM version number and Option Rom version which
* together make a unique identify for the eeprom
--
2.41.0
Powered by blists - more mailing lists