Commit 7cc458ac authored by Krishna Kurapati's avatar Krishna Kurapati Committed by Matthias Männich
Browse files

BACKPORT: 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>

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

 usb-
next)

Bug: 284900975
Change-Id: I43925bafc6ba7b08e8c501502a0fa58ee40e6526
Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
(cherry picked from commit 8faa860f)
parent fffb0ae9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment