usb: cdnsp: Fix incorrect supported maximum speed
authorPawel Laszczak <pawell@cadence.com>
Fri, 25 Jun 2021 10:25:02 +0000 (12:25 +0200)
committerPeter Chen <peter.chen@zeku.com>
Thu, 29 Jul 2021 06:13:02 +0000 (14:13 +0800)
commitaa82f94e869edd72f4fadb08c6ffca8927e4934e
tree745b45b02a829cb6e5e67f9b6c7d6375324d7f6d
parentaa35772f61752d4c636d46be51a4f7ca6c029ee6
usb: cdnsp: Fix incorrect supported maximum speed

Driver had hardcoded in initialization maximum supported speed
to USB_SPEED_SUPER_PLUS but it should consider the speed
returned from usb_get_maximum_speed function.

Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20210625102502.26336-1-pawell@gli-login.cadence.com
Signed-off-by: Peter Chen <peter.chen@kernel.org>
drivers/usb/cdns3/cdnsp-gadget.c