Skip to content

Commit aa82f94

Browse files
pawellcdnsPeter Chen
authored andcommitted
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: 3d82904 ("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>
1 parent aa35772 commit aa82f94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/cdns3/cdnsp-gadget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ static int __cdnsp_gadget_init(struct cdns *cdns)
18821882
pdev->gadget.name = "cdnsp-gadget";
18831883
pdev->gadget.speed = USB_SPEED_UNKNOWN;
18841884
pdev->gadget.sg_supported = 1;
1885-
pdev->gadget.max_speed = USB_SPEED_SUPER_PLUS;
1885+
pdev->gadget.max_speed = max_speed;
18861886
pdev->gadget.lpm_capable = 1;
18871887

18881888
pdev->setup_buf = kzalloc(CDNSP_EP0_SETUP_SIZE, GFP_KERNEL);

0 commit comments

Comments
 (0)