mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 18:56:24 +00:00
net: stmmac: option to enable PHY WOL with PMT enabled
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. There is another case where MAC HW PMT is enabled but the platform still goes for the PHY WOL option. E.g, Intel platform are designed for PHY WOL but not MAC WOL although HW MAC PMT features are enabled. Introduce use_phy_wol platform data to select PHY WOL instead of depending on HW PMT features. 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. Signed-off-by: Ling Pei Lee <pei.lee.ling@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b03cfe6fde
commit
5a9b876e9d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user