OpenCloudOS-Kernel/drivers/net/ethernet/stmicro/stmmac
Rongguang Wei a9334b702a net: stmmac: add to set device wake up flag when stmmac init phy
When MAC is not support PMT, driver will check PHY's WoL capability
and set device wakeup capability in stmmac_init_phy(). We can enable
the WoL through ethtool, the driver would enable the device wake up
flag. Now the device_may_wakeup() return true.

But if there is a way which enable the PHY's WoL capability derectly,
like in BIOS. The driver would not know the enable thing and would not
set the device wake up flag. The phy_suspend may failed like this:

[   32.409063] PM: dpm_run_callback(): mdio_bus_phy_suspend+0x0/0x50 returns -16
[   32.409065] PM: Device stmmac-1:00 failed to suspend: error -16
[   32.409067] PM: Some devices failed to suspend, or early wake event detected

Add to set the device wakeup enable flag according to the get_wol
function result in PHY can fix the error in this scene.

v2: add a Fixes tag.

Fixes: 1d8e5b0f3f ("net: stmmac: Support WOL with phy")
Signed-off-by: Rongguang Wei <weirongguang@kylinos.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-03-06 07:36:20 +00:00
..
Kconfig net: stmmac: tegra: Add MGBE support 2022-12-05 09:44:42 +00:00
Makefile net: stmmac: tegra: Add MGBE support 2022-12-05 09:44:42 +00:00
altr_tse_pcs.c net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link 2022-04-11 10:41:00 +01:00
altr_tse_pcs.h net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link 2022-04-11 10:41:00 +01:00
chain_mode.c net: ethernet: stmicro: stmmac: move dma conf to dedicated struct 2022-07-25 19:38:57 -07:00
common.h net: stmmac: bump tc when get underflow error from DMA descriptor 2021-12-13 12:20:35 +00:00
descs.h
descs_com.h
dwmac-anarion.c
dwmac-dwc-qos-eth.c net: stmmac: dwc-qos: Make struct dwc_eth_dwmac_data::remove return void 2023-02-13 19:50:43 -08:00
dwmac-generic.c net: stmmac: add support for dwmac 3.40a 2021-10-08 16:22:39 +01:00
dwmac-imx.c net: stmmac: add imx93 platform support 2023-01-18 12:47:40 +00:00
dwmac-ingenic.c net: stmmac: fix leaks in probe 2022-07-13 14:21:42 +01:00
dwmac-intel-plat.c
dwmac-intel.c stmmac: intel: Update PCH PTP clock rate from 200MHz to 204.8MHz 2022-11-09 18:35:15 -08:00
dwmac-intel.h
dwmac-ipq806x.c net: ethernet: stmmac: reset force speed bit for ipq806x 2022-06-16 10:13:20 +02:00
dwmac-loongson.c stmmac: dwmac-loongson: fix missing of_node_put() while module exiting 2022-11-10 11:03:00 +01:00
dwmac-lpc18xx.c
dwmac-mediatek.c stmmac: dwmac-mediatek: remove the dwmac_fix_mac_speed 2023-01-05 20:59:16 -08:00
dwmac-meson.c
dwmac-meson8b.c net: stmmac: dwmac-meson8b: fix meson8b_devm_clk_prepare_enable() 2022-11-07 17:52:24 -08:00
dwmac-oxnas.c net: stmmac: dwmac-oxnas: Add support for OX810SE 2022-01-12 09:05:02 -08:00
dwmac-qcom-ethqos.c net: stmmac: do not stop RX_CLK in Rx LPI state for qcs404 SoC 2023-01-30 07:21:25 +00:00
dwmac-rk.c net: stmmac: Make stmmac_dvr_remove() return void 2023-02-13 19:50:43 -08:00
dwmac-socfpga.c net: ethernet: stmmac: fix write to sgmii_adapter_base 2022-04-22 16:31:56 -07:00
dwmac-sti.c net: stmmac: Make stmmac_dvr_remove() return void 2023-02-13 19:50:43 -08:00
dwmac-stm32.c net: stmmac: Make stmmac_dvr_remove() return void 2023-02-13 19:50:43 -08:00
dwmac-sun8i.c net: stmmac: dwmac-sun8i: add missing of_node_put() in sun8i_dwmac_register_mdio_mux() 2022-04-29 19:24:08 -07:00
dwmac-sunxi.c
dwmac-tegra.c net: stmmac: tegra: Add MGBE support 2022-12-05 09:44:42 +00:00
dwmac-visconti.c net: stmmac: dwmac-visconti: No change to ETHER_CLOCK_SEL for unexpected speed request. 2022-01-28 14:28:30 +00:00
dwmac4.h net: stmmac: remove duplicate dma queue channel macros 2022-10-27 11:36:11 +02:00
dwmac4_core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-29 13:04:52 -08:00
dwmac4_descs.c net: stmmac: remove unused get_addr() callback 2022-05-18 13:59:15 +01:00
dwmac4_descs.h
dwmac4_dma.c net: stmmac: fix get_hw_feature() on old hardware 2021-10-08 16:22:38 +01:00
dwmac4_dma.h
dwmac4_lib.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
dwmac5.c net: stmmac: fix order of dwmac5 FlexPPS parametrization sequence 2023-02-13 20:04:43 -08:00
dwmac5.h
dwmac100.h net: stmmac: Disable automatic FCS/Pad stripping 2022-09-08 10:12:20 +02:00
dwmac100_core.c net: stmmac: Disable automatic FCS/Pad stripping 2022-09-08 10:12:20 +02:00
dwmac100_dma.c
dwmac1000.h net: stmmac: Disable automatic FCS/Pad stripping 2022-09-08 10:12:20 +02:00
dwmac1000_core.c net: stmmac: Disable automatic FCS/Pad stripping 2022-09-08 10:12:20 +02:00
dwmac1000_dma.c net: stmmac: fix get_hw_feature() on old hardware 2021-10-08 16:22:38 +01:00
dwmac_dma.h net: stmmac: dump gmac4 DMA registers correctly 2022-01-31 21:21:10 -08:00
dwmac_lib.c net: stmmac: work around sporadic tx issue on link-up 2022-08-25 12:40:56 -07:00
dwxgmac2.h
dwxgmac2_core.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
dwxgmac2_descs.c net: stmmac: remove unused get_addr() callback 2022-05-18 13:59:15 +01:00
dwxgmac2_dma.c net: stmmac: fix get_hw_feature() on old hardware 2021-10-08 16:22:38 +01:00
dwxlgmac2.h
enh_desc.c net: stmmac: remove unused get_addr() callback 2022-05-18 13:59:15 +01:00
hwif.c
hwif.h net/sched: taprio: only pass gate mask per TXQ for igc, stmmac, tsnep, am65_cpsw 2023-02-06 10:06:44 +00:00
mmc.h
mmc_core.c stmicro/stmmac: fix repeated words in comments 2022-07-01 20:13:30 -07:00
norm_desc.c net: stmmac: remove unused get_addr() callback 2022-05-18 13:59:15 +01:00
ring_mode.c net: ethernet: stmicro: stmmac: move dma conf to dedicated struct 2022-07-25 19:38:57 -07:00
stmmac.h net: stmmac: Make stmmac_dvr_remove() return void 2023-02-13 19:50:43 -08:00
stmmac_ethtool.c net: stmmac: Fix queue statistics reading 2023-01-16 13:10:04 +00:00
stmmac_hwtstamp.c stmmac: fix potential division by 0 2022-12-12 15:09:14 -08:00
stmmac_main.c net: stmmac: add to set device wake up flag when stmmac init phy 2023-03-06 07:36:20 +00:00
stmmac_mdio.c net: phy: Remove probe_capabilities 2023-01-19 16:23:19 +01:00
stmmac_pci.c net: stmmac: fix missing pci_disable_device() on error in stmmac_pci_probe() 2022-05-10 19:12:57 -07:00
stmmac_pcs.h
stmmac_platform.c Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net 2023-02-17 11:06:39 +00:00
stmmac_platform.h
stmmac_ptp.c net: stmmac: add aux timestamps fifo clearance wait 2023-01-11 21:10:06 -08:00
stmmac_ptp.h stmmac: fix potential division by 0 2022-12-12 15:09:14 -08:00
stmmac_selftests.c net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload() 2022-12-09 10:49:39 +00:00
stmmac_tc.c net/sched: taprio: only pass gate mask per TXQ for igc, stmmac, tsnep, am65_cpsw 2023-02-06 10:06:44 +00:00
stmmac_xdp.c net: stmmac: enhance XDP ZC driver level switching performance 2021-11-15 12:56:34 +00:00
stmmac_xdp.h