Re: [PATCH 1/2] usb: gadget: core: introduce ->udc_set_speed() method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 6 Jun 2017, Felipe Balbi wrote:

> 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: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>

dummy-hcd already checks for this in its dummy_pullup() routine.  
Should other UDC drivers copy this approach?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux