mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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
Signed-off-by: Avichal Rakesh <arakesh@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:b59c3ebaf21e40182bad5160dd5d721d8c849f59)
Merged-In: I2885819dd75e9d65de8258b7d2f6fc5d98de6c68
Change-Id: I2885819dd75e9d65de8258b7d2f6fc5d98de6c68
This commit is contained in:
committed by
Treehugger Robot
parent
e25b806e1b
commit
f82b531088
@@ -673,9 +673,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.
|
||||
|
||||
Reference in New Issue
Block a user