Skip to content

Commit c2b47b8

Browse files
Peter Chengregkh
authored andcommitted
usb: cdnsp: do not disable slot for disabled slot
commit 7e2c421ef88e9da9c39e01496b7f5b0b354b42bc upstream. It doesn't need to do it, and the related command event returns 'Slot Not Enabled Error' status. Fixes: 3d82904 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver") Cc: stable <[email protected]> Suggested-by: Hongliang Yang <[email protected]> Reviewed-by: Fugang Duan <[email protected]> Signed-off-by: Peter Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4b1eb51 commit c2b47b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/cdns3/cdnsp-ring.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,9 @@ static int cdnsp_update_port_id(struct cdnsp_device *pdev, u32 port_id)
772772
}
773773

774774
if (port_id != old_port) {
775-
cdnsp_disable_slot(pdev);
775+
if (pdev->slot_id)
776+
cdnsp_disable_slot(pdev);
777+
776778
pdev->active_port = port;
777779
cdnsp_enable_slot(pdev);
778780
}

0 commit comments

Comments
 (0)