linux/drivers/usb/gadget/function
Prashanth K 17c2c87c37 usb: gadget: u_ether: Set is_suspend flag if remote wakeup fails
Currently while UDC suspends, u_ether attempts to remote wakeup
the host if there are any pending transfers. However, if remote
wakeup fails, the UDC remains suspended but the is_suspend flag
is not set. And since is_suspend flag isn't set, the subsequent
eth_start_xmit() would queue USB requests to suspended UDC.

To fix this, bail out from gether_suspend() only if remote wakeup
operation is successful.

Cc: stable <stable@kernel.org>
Fixes: 0a1af6dfa0 ("usb: gadget: f_ecm: Add suspend/resume and remote wakeup support")
Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250212100840.3812153-1-prashanth.k@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-19 15:18:41 +01:00
..
f_acm.c
f_ecm.c USB: gadget: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
f_eem.c
f_fs.c usb: gadget: f_fs: Remove WARN_ON in functionfs_bind 2024-12-23 18:54:34 +01:00
f_hid.c
f_loopback.c
f_mass_storage.c drivers/usb/gadget: refactor min with min_t 2024-11-13 15:09:50 +01:00
f_mass_storage.h
f_midi.c USB: gadget: f_midi: f_midi_complete to call queue_work 2025-02-14 09:24:20 +01:00
f_midi2.c usb: gadget: midi2: Fix interpretation of is_midi1 bits 2024-12-04 16:26:34 +01:00
f_ncm.c USB: gadget: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
f_obex.c
f_phonet.c
f_printer.c
f_rndis.c
f_serial.c
f_sourcesink.c
f_subset.c
f_tcm.c usb: gadget: f_tcm: Refactor goto check_condition 2024-12-24 08:56:08 +01:00
f_uac1.c
f_uac1_legacy.c
f_uac2.c usb: gadget: f_uac2: Fix incorrect setting of bNumEndpoints 2024-12-23 18:50:28 +01:00
f_uvc.c usb: gadget: uvc: rework to enqueue in pump worker from encoded queue 2024-10-17 08:42:22 +02:00
f_uvc.h
g_zero.h
Makefile usb: gadget: uvc: add trace of enqueued and completed requests 2024-10-17 08:42:23 +02:00
ndis.h
rndis.c
rndis.h
storage_common.c
storage_common.h usb: storage: add a macro for the upper limit of max LUN 2024-12-04 16:33:54 +01:00
tcm.h usb: gadget: f_tcm: Stall on invalid CBW 2024-12-24 08:56:07 +01:00
u_audio.c
u_audio.h
u_ecm.h
u_eem.h
u_ether.c usb: gadget: u_ether: Set is_suspend flag if remote wakeup fails 2025-02-19 15:18:41 +01:00
u_ether.h
u_ether_configfs.h
u_fs.h
u_gether.h
u_hid.h
u_midi.h
u_midi2.h
u_ncm.h
u_phonet.h
u_printer.h
u_rndis.h
u_serial.c Revert "usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null" 2025-01-17 12:41:16 +01:00
u_serial.h
u_tcm.h
u_uac1.h
u_uac1_legacy.c
u_uac1_legacy.h
u_uac2.h
u_uvc.h
uac_common.h
uvc.h usb: gadget: uvc: set nbuffers to minimum STREAMING_MIN_BUFFERS in uvc_queue_setup 2024-10-17 08:42:23 +02:00
uvc_configfs.c usb: gadget: uvc: configfs: Add frame-based frame format support 2024-10-16 10:45:47 +02:00
uvc_configfs.h usb: gadget: uvc: configfs: Add frame-based frame format support 2024-10-16 10:45:47 +02:00
uvc_queue.c usb: gadget: uvc: set nbuffers to minimum STREAMING_MIN_BUFFERS in uvc_queue_setup 2024-10-17 08:42:23 +02:00
uvc_queue.h usb: gadget: uvc: set req_length based on payload by nreqs instead of req_size 2024-10-17 08:42:22 +02:00
uvc_trace.c usb: gadget: uvc: add trace of enqueued and completed requests 2024-10-17 08:42:23 +02:00
uvc_trace.h usb: gadget: uvc: add trace of enqueued and completed requests 2024-10-17 08:42:23 +02:00
uvc_v4l2.c usb: gadget: uvc: dont call usb_composite_setup_continue when not streaming 2024-10-17 08:42:23 +02:00
uvc_v4l2.h
uvc_video.c usb: gadget: uvc: Fix unstarted kthread worker 2025-02-14 09:26:00 +01:00
uvc_video.h