UPSTREAM: 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 in turn sends the error to configfs. The userspace can then retry enumeration if it chooses to. Signed-off-by:Krishna Kurapati <quic_kriskura@quicinc.com> Reviewed-by:
Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20230927073027.27952-1-quic_kriskura@quicinc.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 0ea39e03 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master) Bug: 309886715 Change-Id: I454616a38e3eba1c358da0056057b585416af68c Signed-off-by:
Krishna Kurapati <quic_kriskura@quicinc.com>
Loading