We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1dd10c commit 736e8d8Copy full SHA for 736e8d8
drivers/usb/dwc2/drd.c
@@ -130,10 +130,8 @@ static int dwc2_drd_role_sw_set(struct usb_role_switch *sw, enum usb_role role)
130
already = dwc2_ovr_avalid(hsotg, true);
131
} else if (role == USB_ROLE_DEVICE) {
132
already = dwc2_ovr_bvalid(hsotg, true);
133
- if (hsotg->enabled) {
134
- /* This clear DCTL.SFTDISCON bit */
135
- dwc2_hsotg_core_connect(hsotg);
136
- }
+ /* This clear DCTL.SFTDISCON bit */
+ dwc2_hsotg_core_connect(hsotg);
137
} else {
138
if (dwc2_is_device_mode(hsotg)) {
139
if (!dwc2_ovr_bvalid(hsotg, false))
0 commit comments