Files
linux/drivers
Jisheng Zhang 640cb5f5e4 usb: dwc3: don't reset device side if dwc3 was configured as host-only
commit e835c0a4e2 upstream.

Commit c4a5153e87 ("usb: dwc3: core: Power-off core/PHYs on
system_suspend in host mode") replaces check for HOST only dr_mode with
current_dr_role. But during booting, the current_dr_role isn't
initialized, thus the device side reset is always issued even if dwc3
was configured as host-only. What's more, on some platforms with host
only dwc3, aways issuing device side reset by accessing device register
block can cause kernel panic.

Fixes: c4a5153e87 ("usb: dwc3: core: Power-off core/PHYs on system_suspend in host mode")
Cc: stable <stable@kernel.org>
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20230627162018.739-1-jszhang@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 11:53:51 +02:00
..
2023-05-17 11:35:47 +02:00
2023-08-11 11:53:45 +02:00
2023-04-05 11:16:43 +02:00
2023-07-27 08:37:14 +02:00
2023-07-27 08:37:43 +02:00
2022-08-25 11:18:33 +02:00
2023-07-27 08:37:19 +02:00