OSDN Git Service

usb: dwc3: gadget: Preserve UDC max speed setting
authorWesley Cheng <wcheng@codeaurora.org>
Tue, 29 Dec 2020 23:05:36 +0000 (15:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Jan 2021 15:47:05 +0000 (16:47 +0100)
commit7c9a2598463a7803629a90e9e425af7ed241ec65
tree064deb970bc0cb93a23c97dd8f3f8fec1cbec443
parent77adb8bdf4227257e26b7ff67272678e66a0b250
usb: dwc3: gadget: Preserve UDC max speed setting

The USB gadget/UDC driver can restrict the DWC3 controller speed using
dwc3_gadget_set_speed().  Store this setting into a variable, in order for
this setting to persist across controller resets due to runtime PM.

Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/1609283136-22140-3-git-send-email-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c