Message ID | 5050D7292AC40763+20230605095527.57898-4-mengyuanlou@net-swift.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | wangxun nics add wol ncsi support | expand |
On Mon, Jun 05, 2023 at 05:52:52PM +0800, Mengyuan Lou wrote: > Pass ncsi_enabled through netdev to phy_supsend(). > when ncsi_enabled is on, phy should not to supsend. Hi Mengyuan Lou, a minor nit from my side: 'supsend' -> 'suspend'
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
Pass ncsi_enabled through netdev to phy_supsend(). when ncsi_enabled is on, phy should not to supsend. Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com> --- drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 1 + 1 file changed, 1 insertion(+)