TencentOS-kernel/drivers/net/ethernet
Heiner Kallweit 36f1cf512a r8169: fix WoL on shutdown if CONFIG_DEBUG_SHIRQ is set
[ Upstream commit cc9f07a838c4988ed244d0907cb71d54b85482a5 ]

So far phy_disconnect() is called before free_irq(). If CONFIG_DEBUG_SHIRQ
is set and interrupt is shared, then free_irq() creates an "artificial"
interrupt by calling the interrupt handler. The "link change" flag is set
in the interrupt status register, causing phylib to eventually call
phy_suspend(). Because the net_device is detached from the PHY already,
the PHY driver can't recognize that WoL is configured and powers down the
PHY.

Fixes: f1e911d5d0df ("r8169: add basic phylib support")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/fe732c2c-a473-9088-3974-df83cfbd6efd@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-12 12:51:53 +08:00
..
3com Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
8390 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
adaptec Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
aeroflex Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
agere Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
alacritech Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
allwinner net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function 2021-03-16 16:43:16 +08:00
alteon Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
altera Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
amazon net: ena: set initial DMA width to avoid intel iommu issue 2021-03-16 16:41:45 +08:00
amd amd-xgbe: Use __napi_schedule() in BH context 2021-03-16 16:26:20 +08:00
apm Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
apple net: bmac: Fix read of MAC address from ROM 2021-03-16 16:28:47 +08:00
aquantia net: ethernet: aquantia: Fix wrong return value 2021-03-16 16:33:45 +08:00
arc net: arc_emac: Fix memleak in arc_mdio_probe 2021-03-16 16:35:30 +08:00
atheros net: ag71xx: add missed clk_disable_unprepare in error path of probe 2021-03-16 16:32:26 +08:00
aurora Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
broadcom bnxt_en: Improve stats context resource accounting with RDMA driver loaded. 2021-04-12 12:51:27 +08:00
brocade Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cadence cadence: force nonlinear buffers to be cloned 2021-03-16 16:40:18 +08:00
calxeda Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cavium bpf: Convert bpf_prog refcnt to atomic64_t 2021-03-16 16:43:58 +08:00
chelsio cxgb3: fix error return code in t3_sge_alloc_qset() 2021-03-16 16:41:56 +08:00
cirrus Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cisco net: enic: Cure the enic api locking trainwreck 2021-03-16 16:38:44 +08:00
cortina net: gemini: Fix another missing clk_disable_unprepare() in probe 2021-03-16 16:35:34 +08:00
davicom Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dec net: dec: de2104x: Increase receive ring size for Tulip 2021-03-16 16:37:45 +08:00
dlink Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
emulex Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ezchip Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
faraday net: ftgmac100: Fix crash when removing driver 2021-03-16 16:41:09 +08:00
freescale net: ethernet: fs_enet: Add missing MODULE_LICENSE 2021-04-12 12:51:24 +08:00
fujitsu Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
google Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
hisilicon net: hns3: fix a phy loopback fail issue 2021-04-12 12:51:15 +08:00
hp Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
huawei Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
i825xx Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ibm ibmvnic: Ensure that CRQ entry read are correctly ordered 2021-04-12 12:51:48 +08:00
intel igc: check return value of ret_val in igc_config_fc_after_link_up 2021-04-12 12:51:53 +08:00
marvell net: mvpp2: TCAM entry enable should be written after SRAM data 2021-04-12 12:51:53 +08:00
mediatek net: ethernet: mtk_eth_soc: fix MTU warnings 2021-03-16 16:33:09 +08:00
mellanox net/mlx5: Fix leak upon failure of rule creation 2021-04-12 12:51:53 +08:00
micrel Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
microchip lan743x: fix rx_napi_poll/interrupt ping-pong 2021-03-16 16:43:16 +08:00
moxa net: moxa: Fix a potential double 'free_irq()' 2021-03-16 16:27:45 +08:00
mscc net: mscc: ocelot: allow offloading of bridge on top of LAG 2021-04-12 12:51:40 +08:00
myricom Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
natsemi net/sonic: Fix some resource leaks in error handling paths 2021-04-12 12:51:15 +08:00
neterion net: vxge: fix wrong __VA_ARGS__ usage 2021-03-16 16:25:53 +08:00
netronome bpf: Switch bpf_map ref counter to atomic64_t so bpf_map_inc() never fails 2021-03-16 16:43:58 +08:00
ni net: nixge: fix potential memory leak in nixge_probe() 2021-03-16 16:32:54 +08:00
nvidia Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
nxp net: lpc-enet: fix error return code in lpc_mii_init() 2021-03-16 16:29:27 +08:00
oki-semi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
packetengines Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pasemi net: pasemi: fix error return code in pasemi_mac_open() 2021-03-16 16:41:56 +08:00
pensando ionic: account for vlan tag len in rx buffer len 2021-04-12 12:51:10 +08:00
qlogic netxen_nic: fix MSI/MSI-x interrupts 2021-04-12 12:51:29 +08:00
qualcomm net: qualcomm: rmnet: Fix incorrect receive packet handling during cleanup 2021-03-16 16:41:07 +08:00
rdc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
realtek r8169: fix WoL on shutdown if CONFIG_DEBUG_SHIRQ is set 2021-04-12 12:51:53 +08:00
renesas sh_eth: Fix power down vs. is_opened flag ordering 2021-04-12 12:51:39 +08:00
rocker rocker: fix incorrect error handling in dma_rings_init 2021-03-16 16:30:47 +08:00
samsung Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
seeq Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sfc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sgi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
silan Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sis Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
smsc net: smc91x: Fix possible memory leak in smc_drv_probe() 2021-03-16 16:32:25 +08:00
socionext net: ethernet: ave: Fix error returns in ave_init 2021-03-16 16:32:27 +08:00
stmicro net: stmmac: Fixed mtu channged by cache aligned 2021-04-12 12:51:31 +08:00
sun net: sun: fix missing release regions in cas_init_one(). 2021-03-16 16:28:26 +08:00
synopsys Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
tehuti Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ti net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered 2021-04-12 12:51:08 +08:00
toshiba net: spider_net: Fix the size used in a 'dma_free_coherent()' call 2021-03-16 16:33:45 +08:00
tundra Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
via Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
wiznet Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
xilinx net: ll_temac: Fix potential NULL dereference in temac_probe() 2021-03-16 16:42:18 +08:00
xircom Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
xscale Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dnet.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dnet.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ec_bhf.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ethoc.c net: ethernet: Fix memleak in ethoc_probe 2021-04-12 12:51:08 +08:00
fealnx.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
jme.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
jme.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
korina.c net: korina: fix return value 2021-03-16 16:43:16 +08:00
lantiq_etop.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lantiq_xrx200.c net: lantiq: Add locking for TX DMA channel 2021-03-16 16:41:02 +08:00