Revert "FROMGIT: usb: gadget: udc: core: Prevent redundant calls to pullup"

This reverts commit b9bb33b73c.

Reason: This patch breaks any USB gadget function that deactivates the
gadget on bind (by setting bind_deactivated = true).

Bug: 285019584

Change-Id: I2885819dd75e9d65de8258b7d2f6fc5d98de6c68
Signed-off-by: Avichal Rakesh <arakesh@google.com>
This commit is contained in:
Avichal Rakesh
2023-05-30 14:05:13 -07:00
committed by Treehugger Robot
parent 44d674262f
commit cdcdf1d9af

View File

@@ -676,9 +676,6 @@ static int usb_gadget_connect_locked(struct usb_gadget *gadget)
goto out;
}
if (gadget->connected)
goto out;
if (gadget->deactivated || !gadget->udc->started) {
/*
* If gadget is deactivated we only save new state.