usb: dwc3: don't reset device side if dwc3 was configured as host-only
Commit c4a5153e ("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: c4a5153e ("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>
parent
71c47ad8
-
mentioned in commit 6366b117
-
mentioned in commit c1fad169
-
mentioned in commit 317d6e4c
-
mentioned in commit b4e909a4
-
mentioned in commit 640cb5f5
-
mentioned in commit 3b2dbc4f
-
mentioned in commit 35719103
-
mentioned in commit c39cb50e
-
mentioned in commit 2966f373
-
mentioned in commit b19938dc
-
mentioned in commit 084de4c6
-
mentioned in commit d9c8275c
Please register or sign in to comment