[PATCH] usb: ehci: Fix test mode sequence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The sequence to put port in test mode is not complete.
According EHCI specification the enabled ports must be
put in suspend by setting PORTSC.Suspend=1.

Signed-off-by: Boris Todorov <boris.st.todorov@xxxxxxxxx>
---
 drivers/usb/host/ehci-hub.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index ea6184b..e608a80 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -1120,6 +1120,9 @@ static int ehci_hub_control (
 			if (!selector || selector > 5)
 				goto error;
 			ehci_quiesce(ehci);
+			ehci_writel(ehci,
+				ehci_readl(ehci, status_reg)|PORT_SUSPEND,
+				status_reg);
 			ehci_halt(ehci);
 			temp |= selector << 16;
 			ehci_writel(ehci, temp, status_reg);
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux