diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-10-05 17:40:35 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-05 17:40:36 -0700 |
| commit | 0e8d29edc3ad5da000d565db92d1cddcb02af53a (patch) | |
| tree | 983dfca93a0daa59bd04493e1137f45e1d18d243 /include/linux/debugobjects.h | |
| parent | 6451576b53961f620de641c0ab3bfa8eabc7184b (diff) | |
| parent | 7b36b48049f4daf164a2ab4b711ac44dc403044f (diff) | |
Merge branch 'net-ngbe-fix-error-handling-in-resume-and-open-paths'
Zhang Yunfei says:
====================
net: ngbe: fix error handling in resume and open paths
Two error-handling fixes for the ngbe PM/open paths.
ngbe_resume() declared err as u32 and returned 0 unconditionally, so a
failed ngbe_reset_hw(), wx_init_interrupt_scheme() or ngbe_open() left
the device in netif_device_detach() state with a broken interrupt
scheme while the PM core was told the resume succeeded; the reset task
bails out on the missing netif_device_present() check, so the device
cannot self-heal. Patch 1 fixes the type and propagates all of these
errors, making the whole tail of the resume path consistent with the
pci_enable_device_mem() failure path at the top, which already reports
its error.
ngbe_open() sets the WX_CFG_PORT_CTL_DRV_LOAD bit to tell the
management firmware the host has taken over the port, but no error
path cleared it, leaving the firmware owning a port whose rings and
IRQs are gone. Patch 2 rolls the bit back on all open error paths,
matching ngbe_close() and ngbe_dev_shutdown().
====================
Link: https://patch.msgid.link/20260930094748.1198085-1-zhangyunfei1@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
