usb: cdns3: gadget: Fix g_audio use case when connected to Super-Speed host
authorRoger Quadros <rogerq@ti.com>
Wed, 30 Oct 2019 12:16:07 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2019 13:39:07 +0000 (14:39 +0100)
commit94e259f81a714c96f381d362228fc4743db49742
tree2a27651ca7664ffcb558861629b69df3a0ccf49b
parentf5c8d290634a470600e1ce61733ec54d05a897e8
usb: cdns3: gadget: Fix g_audio use case when connected to Super-Speed host

Take into account gadget driver's speed limit when programming
controller speed.

Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/20191030121607.21739-1-rogerq@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/gadget.c