aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2022-04-03 09:49:07 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-22 10:29:35 +0200
commit0f01017191384e3962fa31520a9fd9846c3d352f (patch)
tree8d810dd815ea83f5417c2768efdbfd7b54dbac4c /drivers/usb/dwc3/gadget.c
parentusb: musb: mediatek: Use clk_bulk API to simplify clock operations (diff)
downloadlinux-dev-0f01017191384e3962fa31520a9fd9846c3d352f.tar.xz
linux-dev-0f01017191384e3962fa31520a9fd9846c3d352f.zip
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. Cc: Felipe Balbi <balbi@kernel.org> Cc: Thinh Nguyen <thinhn@synopsys.com> Cc: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Link: https://lore.kernel.org/r/20220403164907.662860-1-andrew.smirnov@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
0 files changed, 0 insertions, 0 deletions