Home
last modified time | relevance | path

Searched hist:"16 dff7857a5dae5a6083c71e6f277799b1f5b98f" (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/udc/
H A Dudc-core.c16dff7857a5dae5a6083c71e6f277799b1f5b98f Tue Oct 01 11:56:32 UTC 2019 Sherry Sun <sherry.sun@nxp.com> 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)
/rk3399_rockchip-uboot/include/linux/usb/
H A Dgadget.h16dff7857a5dae5a6083c71e6f277799b1f5b98f Tue Oct 01 11:56:32 UTC 2019 Sherry Sun <sherry.sun@nxp.com> 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)