[PATCH] Add more Test Modes

Felipe Balbi
2007-05-29T12:02:36Z

From: Felipe Balbi <felipe.lima@indt.org.br>

This patch adds missing TestMode to MUSB driver.
Needed to run USB Certification Tests.

Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br>
---

diff --git a/drivers/usb/musb/virthub.c b/drivers/usb/musb/virthub.c
index 6a65f4f..b86f034 100644
--- a/drivers/usb/musb/virthub.c
+++ b/drivers/usb/musb/virthub.c
@@ -362,7 +362,11 @@ int musb_hub_control(
temp = MGC_M_TEST_FORCE_HOST
| MGC_M_TEST_FORCE_HS;

- /* FIXME and enable a session too */
+ musb_writeb(musb->pRegs, MGC_O_HDRC_DEVCTL, MGC_M_DEVCTL_SESSION);
+ break;
+ case 6:
+ pr_debug("TEST_FIFO_ACCESS\n");
+ temp = MGC_M_TEST_FIFO_ACCESS;
break;
default:
goto error;
--
1.5.2.rc3.39.gaf9b