]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b4897718888859bd78178140799c5b1e47d181d
tree745b45b02a829cb6e5e67f9b6c7d6375324d7f6d
parent500dfaece35e9e62e40c95a3a859ec6d033f779d
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: cdacaf0d5af1 ("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