Merge branch 'stmmac-phy-wol'
Ling Pei Lee says: ==================== tmmac: Add option to enable PHY WOL with PMT enabled This patchset main objective is to provide an option to enable PHY WoL even the PMT is enabled by default in the HW features. The current stmmac driver WOL implementation will enable MAC WOL if MAC HW PMT feature is on. Else, the driver will check for PHY WOL support. Intel EHL mgbe are designed to wake up through PHY WOL although the HW PMT is enabled.Hence, introduced use_phy_wol platform data to provide this PHY WOL option. Set use_phy_wol will disable the plat->pmt which currently used to determine the system to wake up by MAC WOL or PHY WOL. This WOL patchset includes of setting the device power state to D3hot. This is because the EHL PSE will need to PSE mgbe to be in D3 state in order for the PSE to goes into suspend mode. Change Log: V2: Drop Patch #3 net: stmmac: Reconfigure the PHY WOL settings in stmmac_resume(). ====================
This commit is contained in:
Коммит
66f1546dfd
|
@ -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;
|
||||
|
@ -1117,6 +1118,7 @@ static int __maybe_unused intel_eth_pci_suspend(struct device *dev)
|
|||
return ret;
|
||||
|
||||
pci_wake_from_d3(pdev, true);
|
||||
pci_set_power_state(pdev, PCI_D3hot);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -6529,7 +6529,8 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
|
|||
* register (if supported).
|
||||
*/
|
||||
priv->plat->enh_desc = priv->dma_cap.enh_desc;
|
||||
priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up;
|
||||
priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up &&
|
||||
!priv->plat->use_phy_wol;
|
||||
priv->hw->pmt = priv->plat->pmt;
|
||||
if (priv->dma_cap.hash_tb_sz) {
|
||||
priv->hw->multicast_filter_bins =
|
||||
|
|
|
@ -265,5 +265,6 @@ struct plat_stmmacenet_data {
|
|||
int msi_sfty_ue_vec;
|
||||
int msi_rx_base_vec;
|
||||
int msi_tx_base_vec;
|
||||
bool use_phy_wol;
|
||||
};
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче