mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
usb: cdnsp: do not disable slot for disabled slot
It doesn't need to do it, and the related command event returns
'Slot Not Enabled Error' status.
Fixes: 3d82904559
("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Cc: stable <stable@kernel.org>
Suggested-by: Hongliang Yang <hongliang.yang@cixtech.com>
Reviewed-by: Fugang Duan <fugang.duan@cixtech.com>
Signed-off-by: Peter Chen <peter.chen@cixtech.com>
Link: https://lore.kernel.org/r/20250619013413.35817-1-peter.chen@cixtech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e04c78d86a
commit
7e2c421ef8
1 changed files with 3 additions and 1 deletions
|
@ -772,7 +772,9 @@ static int cdnsp_update_port_id(struct cdnsp_device *pdev, u32 port_id)
|
|||
}
|
||||
|
||||
if (port_id != old_port) {
|
||||
cdnsp_disable_slot(pdev);
|
||||
if (pdev->slot_id)
|
||||
cdnsp_disable_slot(pdev);
|
||||
|
||||
pdev->active_port = port;
|
||||
cdnsp_enable_slot(pdev);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue