stmmac: intel: Enable PHY WOL option in EHL
authorLing Pei Lee <pei.lee.ling@intel.com>
Tue, 29 Jun 2021 03:08:58 +0000 (11:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jun 2021 18:34:48 +0000 (11:34 -0700)
Enable PHY Wake On LAN in Intel EHL Intel platform.
PHY Wake on LAN option is enabled due to
Intel EHL Intel platform is designed for
PHY Wake On LAN but not MAC Wake On LAN.

Signed-off-by: Ling Pei Lee <pei.lee.ling@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c

index e0a7d2b1792160687fccca3d7c9d399b5de89b31..689bcd947f7a918c0983ddf299d957dfc1c1b5ad 100644 (file)
@@ -593,6 +593,7 @@ static int ehl_common_data(struct pci_dev *pdev,
        plat->rx_queues_to_use = 8;
        plat->tx_queues_to_use = 8;
        plat->clk_ptp_rate = 200000000;
+       plat->use_phy_wol = 1;
 
        plat->safety_feat_cfg->tsoee = 1;
        plat->safety_feat_cfg->mrxpee = 1;