]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: core: Stop processing of pending events if controller is halted
authorSelvarasu Ganesan <selvarasu.g@samsung.com>
Mon, 16 Sep 2024 23:18:09 +0000 (04:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:59 +0000 (15:11 +0200)
commit254ef45afea59c126dc56ce2e7fa6ac5befa71bd
treecaf508c2ead4926bf67515cd34618c7644586691
parent34354210968f2c150b47d1aa26278d64c3108b7b
usb: dwc3: core: Stop processing of pending events if controller is halted

commit 0d410e8913f5cffebcca79ffdd596009d4a13a28 upstream.

This commit addresses an issue where events were being processed when
the controller was in a halted state. To fix this issue by stop
processing the events as the event count was considered stale or
invalid when the controller was halted.

Fixes: fc8bb91bc83e ("usb: dwc3: implement runtime PM")
Cc: stable@kernel.org
Signed-off-by: Selvarasu Ganesan <selvarasu.g@samsung.com>
Suggested-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20240916231813.206-1-selvarasu.g@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c