rv1126-uboot/drivers/usb/gadget/udc
Sherry Sun 16dff7857a UPSTREAM: usb: udc: Introduce ->udc_set_speed() method
This patch was copied from kernel commit: 67fdfda4a99ed.

Sometimes, the gadget driver we want to run has max_speed lower than
what the UDC supports. In such situations, UDC might want to make sure
we don't try to connect on speeds not supported by the gadget
driver because that will just fail.

So here introduce a new optional ->udc_set_speed() method which can be
implemented by interested UDC drivers to achieve this purpose.

Change-Id: I8ce57970c9095a92553ee12520e3724bd029d6b6
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 8d94e184ffdef48b40942c12d9e7b0290e60a1ef)
2020-01-07 17:25:03 +08:00
..
Makefile UPSTREAM: dm: usb: gadget: Fix boot breakage on sunxi platforms 2020-01-07 17:24:55 +08:00
udc-core.c UPSTREAM: usb: udc: Introduce ->udc_set_speed() method 2020-01-07 17:25:03 +08:00
udc-uclass.c UPSTREAM: usb: udc-uclass: Fixed problem when no alias is defined in DT 2020-01-07 17:24:56 +08:00