Commit 6ae7d030 authored by Krishna Kurapati's avatar Krishna Kurapati Committed by Matthias Männich
Browse files

BACKPORT: FROMGIT: usb: gadget: udc: Handle gadget_connect failure during bind operation



In the event, gadget_connect call (which invokes pullup) fails,
propagate the error to udc bind operation which inturn sends the
error to configfs. The userspace can then retry enumeartion if
it chooses to.

Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20230510075252.31023-3-quic_kriskura@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 275538389
Bug: 301017317
Bug: 301378679
(cherry picked from commit d34f9baf https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git

 usb-next)
[wcheng: Fixed some merge conflicts in usb_udc_connect_control]
Change-Id: I3068fc6f679ec236fa700c4cb5dd56238dacb5ac
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: default avatarwangting <wangting11@xiaomi.com>
parent 37d4c953
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment