Skip to content
Commit 67fdfda4 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: core: introduce ->udc_set_speed() method



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 (e.g. super-speed capable dwc3 with high-speed capable g_midi)
because that will just fail.

In order to make sure this situation never happens, we introduce a new
optional ->udc_set_speed() method which can be implemented by
interested UDC drivers.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 1b9f35ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment