usb: gadget: udc: Handle gadget_connect failure during bind operation
authorKrishna Kurapati <quic_kriskura@quicinc.com>
Wed, 10 May 2023 07:52:52 +0000 (13:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 May 2023 10:00:18 +0000 (19:00 +0900)
commitd34f9bafa78da2a561c67d9daf55fc4d1d80edf0
tree7f9f5bff6e36782b170772647de81f9fcc11e523
parent813f44d57e19ccaa7330e829bd913515be42719d
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: Krishna Kurapati <quic_kriskura@quicinc.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20230510075252.31023-3-quic_kriskura@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c