Commit f3c08017 authored by Krishna Kurapati's avatar Krishna Kurapati Committed by Treehugger Robot
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
Bug: 287551636
Bug: 287716684
Change-Id: I43925bafc6ba7b08e8c501502a0fa58ee40e6526
Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
(cherry picked from commit 8faa860f)
Signed-off-by: default avatarSrinivasarao Pathipati <quic_spathi@quicinc.com>
parent 97477d3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment