Skip to contentSkip to conversation

fsl-usb: add need_oc_pp_cycle flag for 85xx also

PATCH In review Daniel Walker 3 participants 5 messages May 7, 2021 – May 13, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsl-usb: add need_oc_pp_cycle flag for 85xx also

From: Gopalakrishnan Santhanam <[email protected]>

Commit e6604a7fd71f9 ("EHCI: Quirk flag for port power handling on overcurrent.") activated the quirks handling (flag need_oc_pp_cycle) for Freescale 83xx based boards.
Activate same for 85xx based boards as well.

---
 drivers/usb/host/ehci-fsl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ehci-fsl.c +1 -1
index 6f7bd6641694..c7d74c1a23f5 100644
@@ -387,7 +387,7 @@ static int ehci_fsl_setup(struct usb_hcd *hcd)
 	/* EHCI registers start at offset 0x100 */
 	ehci->caps = hcd->regs + 0x100;
 
-#ifdef CONFIG_PPC_83xx
+#if defined(CONFIG_PPC_83xx) || defined(CONFIG_PPC_85xx)
 	/*
 	 * Deal with MPC834X that need port power to be cycled after the power
 	 * fault condition is removed. Otherwise the state machine does not
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 19 lines · Daniel Walker

From: Gopalakrishnan Santhanam <[email protected]>

Commit e6604a7fd71f9 ("EHCI: Quirk flag for port power handling on overcurrent.") activated the quirks handling (flag need_oc_pp_cycle) for Freescale 83xx based boards.
Activate same for 85xx based boards as well.

---
 drivers/usb/host/ehci-fsl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ehci-fsl.c +0 -0
index 6f7bd6641694..c7d74c1a23f5 100644

drivers/usb/host/ehci-fsl.c static int ehci_fsl_setup(struct usb_hcd *hcd) · line 392

Quoted 7 lines
drivers/usb/host/ehci-fsl.c +1 -1
@@ -387,7 +387,7 @@ static int ehci_fsl_setup(struct usb_hcd *hcd)
 	/* EHCI registers start at offset 0x100 */
 	ehci->caps = hcd->regs + 0x100;
 
-#ifdef CONFIG_PPC_83xx
+#if defined(CONFIG_PPC_83xx) || defined(CONFIG_PPC_85xx)
 	/*
 	 * Deal with MPC834X that need port power to be cycled after the power

-------------------------^

Shouldn't this comment be changed as well?

Alan Stern

Quoted 4 lines
drivers/usb/host/ehci-fsl.c +0 -0
 	 * fault condition is removed. Otherwise the state machine does not
Signature · 1 line
2.25.1
#2 lore raw

Hi Alan

Thanks for the review !

Yes we have to change the comment as well.

We will update the comments and resend.

Regards,
Gopal

-----Original Message-----
From: Alan Stern <[email protected]>
Sent: Friday, May 7, 2021 11:07 PM
To: Daniel Walker (danielwa) <[email protected]>
Cc: HEMANT RAMDASI (hramdasi) <[email protected]>; Christian Engelmayer <[email protected]>; Gopalakrishnan Santhanam -X (gsanthan - Altran ACT S.A.S at Cisco) <[email protected]>; xe-linux-external(mailer list) <[email protected]>; Greg Kroah-Hartman <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH] fsl-usb: add need_oc_pp_cycle flag for 85xx also

Quoted 26 lines · Daniel Walker

From: Gopalakrishnan Santhanam <[email protected]>

Commit e6604a7fd71f9 ("EHCI: Quirk flag for port power handling on overcurrent.") activated the quirks handling (flag need_oc_pp_cycle) for Freescale 83xx based boards.
Activate same for 85xx based boards as well.

---
 drivers/usb/host/ehci-fsl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ehci-fsl.c +1 -1
index 6f7bd6641694..c7d74c1a23f5 100644
@@ -387,7 +387,7 @@ static int ehci_fsl_setup(struct usb_hcd *hcd)
 	/* EHCI registers start at offset 0x100 */
 	ehci->caps = hcd->regs + 0x100;
 
-#ifdef CONFIG_PPC_83xx
+#if defined(CONFIG_PPC_83xx) || defined(CONFIG_PPC_85xx)
 	/*
 	 * Deal with MPC834X that need port power to be cycled after the 
Quoted 1 line

power

-------------------------^

Shouldn't this comment be changed as well?

Alan Stern

Quoted 4 lines

* fault condition is removed. Otherwise the state machine does not
--
2.25.1

#3 lore raw

PATCH v2 1/1 fsl-usb: add need_oc_pp_cycle flag for 85xx also

In reply to Daniel Walker

Commit e6604a7fd71f9 ("EHCI: Quirk flag for port power handling on overcurrent.") activated the quirks handling (flag need_oc_pp_cycle) for Freescale 83xx based boards.
Activate same for 85xx based boards as well.

---
 drivers/usb/host/ehci-fsl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/usb/host/ehci-fsl.c +4 -4
index 6f7bd6641694..385be30baad3 100644
@@ -387,11 +387,11 @@ static int ehci_fsl_setup(struct usb_hcd *hcd)
 	/* EHCI registers start at offset 0x100 */
 	ehci->caps = hcd->regs + 0x100;
 
-#ifdef CONFIG_PPC_83xx
+#if defined(CONFIG_PPC_83xx) || defined(CONFIG_PPC_85xx)
 	/*
-	 * Deal with MPC834X that need port power to be cycled after the power
-	 * fault condition is removed. Otherwise the state machine does not
-	 * reflect PORTSC[CSC] correctly.
+	 * Deal with MPC834X/85XX that need port power to be cycled
+	 * after the power fault condition is removed. Otherwise the
+	 * state machine does not reflect PORTSC[CSC] correctly.
 	 */
 	ehci->need_oc_pp_cycle = 1;
 #endif
Signature · 1 line
2.26.2.Cisco
maintainer Acked-by on v2 1/1
#4 lore raw
Quoted 9 lines · Gopalakrishnan Santhanam

Commit e6604a7fd71f9 ("EHCI: Quirk flag for port power handling on overcurrent.") activated the quirks handling (flag need_oc_pp_cycle) for Freescale 83xx based boards.
Activate same for 85xx based boards as well.

---

Quoted 26 lines
 drivers/usb/host/ehci-fsl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/usb/host/ehci-fsl.c +4 -4
index 6f7bd6641694..385be30baad3 100644
@@ -387,11 +387,11 @@ static int ehci_fsl_setup(struct usb_hcd *hcd)
 	/* EHCI registers start at offset 0x100 */
 	ehci->caps = hcd->regs + 0x100;
 
-#ifdef CONFIG_PPC_83xx
+#if defined(CONFIG_PPC_83xx) || defined(CONFIG_PPC_85xx)
 	/*
-	 * Deal with MPC834X that need port power to be cycled after the power
-	 * fault condition is removed. Otherwise the state machine does not
-	 * reflect PORTSC[CSC] correctly.
+	 * Deal with MPC834X/85XX that need port power to be cycled
+	 * after the power fault condition is removed. Otherwise the
+	 * state machine does not reflect PORTSC[CSC] correctly.
 	 */
 	ehci->need_oc_pp_cycle = 1;
 #endif
Signature · 1 line
2.26.2.Cisco