Skip to content

Commit 736e8d8

Browse files
committed
Revert "usb: dwc2: drd: fix soft connect when gadget is unconfigured"
This reverts commit 269cbcf. It causes build errors as reported by the kernel test robot. Link: https://lore.kernel.org/r/[email protected] Reported-by: kernel test robot <[email protected]> Fixes: 269cbcf ("usb: dwc2: drd: fix soft connect when gadget is unconfigured") Cc: [email protected] Cc: Amelie Delaunay <[email protected]> Cc: Minas Harutyunyan <[email protected]> Cc: Fabrice Gasnier <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c1dd10c commit 736e8d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/usb/dwc2/drd.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ static int dwc2_drd_role_sw_set(struct usb_role_switch *sw, enum usb_role role)
130130
already = dwc2_ovr_avalid(hsotg, true);
131131
} else if (role == USB_ROLE_DEVICE) {
132132
already = dwc2_ovr_bvalid(hsotg, true);
133-
if (hsotg->enabled) {
134-
/* This clear DCTL.SFTDISCON bit */
135-
dwc2_hsotg_core_connect(hsotg);
136-
}
133+
/* This clear DCTL.SFTDISCON bit */
134+
dwc2_hsotg_core_connect(hsotg);
137135
} else {
138136
if (dwc2_is_device_mode(hsotg)) {
139137
if (!dwc2_ovr_bvalid(hsotg, false))

0 commit comments

Comments
 (0)