aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/uvc_queue.c
diff options
context:
space:
mode:
authorAndrey Smirnov <[email protected]>2022-10-18 02:35:10 +0300
committerGreg Kroah-Hartman <[email protected]>2022-10-22 12:29:43 +0200
commitd182c2e1bc92084c038b44c618f29589a4de9f66 (patch)
tree6c79831bc9e5bf90f7a6c253d638c3d2f06ce146 /drivers/usb/gadget/function/uvc_queue.c
parent593c5ba288e118ad80b41e8339f0d0dcad65eb04 (diff)
usb: dwc3: Don't switch OTG -> peripheral if extcon is present
If the extcon device exists, get the mode from the extcon device. If the controller is DRD and the driver is unable to determine the mode, only then default the dr_mode to USB_DR_MODE_PERIPHERAL. Reported-by: Steev Klimaszewski <[email protected]> Fixes: 7a84e7353e23 ("Revert "usb: dwc3: Don't switch OTG -> peripheral if extcon is present"") Cc: stable <[email protected]> Reviewed-by: Thinh Nguyen <[email protected]> Signed-off-by: Andrey Smirnov <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Tested-by: Steev Klimaszewski <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/gadget/function/uvc_queue.c')
0 files changed, 0 insertions, 0 deletions