Commit 630a1de
usb: dwc3: Abort suspend on soft disconnect failure
When dwc3_gadget_soft_disconnect() fails, dwc3_suspend_common() keeps
going with the suspend, resulting in a period where the power domain is
off, but the gadget driver remains connected. Within this time frame,
invoking vbus_event_work() will cause an error as it attempts to access
DWC3 registers for endpoint disabling after the power domain has been
completely shut down.
Abort the suspend sequence when dwc3_gadget_suspend() cannot halt the
controller and proceeds with a soft connect.
Fixes: 9f8a67b ("usb: dwc3: gadget: fix gadget suspend/resume")
Cc: stable <stable@kernel.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Link: https://lore.kernel.org/r/20250528100315.2162699-1-khtsai@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 7e2c421 commit 630a1de
2 files changed
Lines changed: 16 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2422 | 2422 | | |
2423 | 2423 | | |
2424 | 2424 | | |
| 2425 | + | |
2425 | 2426 | | |
2426 | 2427 | | |
2427 | 2428 | | |
| |||
2440 | 2441 | | |
2441 | 2442 | | |
2442 | 2443 | | |
2443 | | - | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
2444 | 2447 | | |
2445 | 2448 | | |
2446 | 2449 | | |
| |||
2475 | 2478 | | |
2476 | 2479 | | |
2477 | 2480 | | |
2478 | | - | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
2479 | 2484 | | |
2480 | 2485 | | |
2481 | 2486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4821 | 4821 | | |
4822 | 4822 | | |
4823 | 4823 | | |
4824 | | - | |
4825 | | - | |
4826 | | - | |
4827 | | - | |
4828 | | - | |
4829 | | - | |
4830 | | - | |
4831 | | - | |
4832 | | - | |
4833 | | - | |
4834 | | - | |
4835 | 4824 | | |
4836 | 4825 | | |
4837 | 4826 | | |
4838 | 4827 | | |
4839 | 4828 | | |
4840 | | - | |
| 4829 | + | |
4841 | 4830 | | |
| 4831 | + | |
| 4832 | + | |
4842 | 4833 | | |
4843 | | - | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
4844 | 4840 | | |
4845 | 4841 | | |
4846 | 4842 | | |
| |||
0 commit comments