Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 1/1] usb: cdnsp: do not disable slot for disabled slot
@ 2025-06-18  9:53 Peter Chen
  2025-06-18 13:04 ` 回复: " Fugang Duan
  2025-07-01  9:34 ` Greg KH
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Chen @ 2025-06-18  9:53 UTC (permalink / raw)
  To: fugang.duan; +Cc: cix-kernel-upstream, Peter Chen, stable, Hongliang Yang

It doesn't need to do it, and the related command event returns
'Slot Not Enabled Error' status.

Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
cc: stable@vger.kernel.org
Suggested-by: Hongliang Yang <hongliang.yang@cixtech.com>
Signed-off-by: Peter Chen <peter.chen@cixtech.com>
---
 drivers/usb/cdns3/cdnsp-ring.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/cdns3/cdnsp-ring.c b/drivers/usb/cdns3/cdnsp-ring.c
index fd06cb85c4ea..757fdd918286 100644
--- a/drivers/usb/cdns3/cdnsp-ring.c
+++ b/drivers/usb/cdns3/cdnsp-ring.c
@@ -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);
 	}
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH 1/1] usb: cdnsp: do not disable slot for disabled slot
@ 2025-06-19  1:34 Peter Chen
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Chen @ 2025-06-19  1:34 UTC (permalink / raw)
  To: gregkh, pawell; +Cc: linux-usb, Peter Chen, stable, Hongliang Yang, Fugang Duan

It doesn't need to do it, and the related command event returns
'Slot Not Enabled Error' status.

Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
cc: stable@vger.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>
---
 drivers/usb/cdns3/cdnsp-ring.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/cdns3/cdnsp-ring.c b/drivers/usb/cdns3/cdnsp-ring.c
index fd06cb85c4ea..757fdd918286 100644
--- a/drivers/usb/cdns3/cdnsp-ring.c
+++ b/drivers/usb/cdns3/cdnsp-ring.c
@@ -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);
 	}
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-07-01  9:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18  9:53 [PATCH 1/1] usb: cdnsp: do not disable slot for disabled slot Peter Chen
2025-06-18 13:04 ` 回复: " Fugang Duan
2025-07-01  9:34 ` Greg KH
2025-07-01  9:43   ` Peter Chen
  -- strict thread matches above, loose matches on Subject: below --
2025-06-19  1:34 Peter Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox