commit | ced40f5c488e820bcdf2e05a2832f50f94a6b63e | [log] [tgz] |
---|---|---|
author | Avichal Rakesh <arakesh@google.com> | Tue May 30 14:05:13 2023 -0700 |
committer | Avichal Rakesh <arakesh@google.com> | Thu Jun 01 01:49:34 2023 +0000 |
tree | 95ed8c611346cc0374a4a2350c4a409a620777a4 | |
parent | 776d0a76f6aa7c5a92c60afbe886a8e786953199 [diff] |
Revert "FROMGIT: usb: gadget: udc: core: Prevent redundant calls to pullup" This reverts commit b9bb33b73cbab1431ef5de4e76198e2d19d20910. Reason: This patch breaks any USB gadget function that deactivates the gadget on bind (by setting bind_deactivated = true). Bug: 285019584 Bug: 285216900 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 (cherry picked from commit f82b5310882625d64a0973014abf6040a85c8b07)
diff --git a/drivers/usb/gadget/udc/core.c b/drivers/usb/gadget/udc/core.c index 76afca8..ff7902c 100644 --- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c
@@ -673,9 +673,6 @@ goto out; } - if (gadget->connected) - goto out; - if (gadget->deactivated || !gadget->udc->started) { /* * If gadget is deactivated we only save new state.