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>
Fri, 4 Oct 2024 13:33:33 +0000 (15:33 +0200)
commit0d410e8913f5cffebcca79ffdd596009d4a13a28
tree8ebada78928dbcc1c69f48849b121abebb0ce4f3
parent897e13a8f9a23576eeacb95075fdded97b197cc3
usb: dwc3: core: Stop processing of pending events if controller is halted

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