[PATCH] Fix the freescale ehci usb

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

 



Hi,

I'm not sure that this is the right commit. This revert some part of the code

Best regards

Michael Trimarchi
Fix the freescale ehci usb that doesn't compile for a regression
introduced by this commit:

65fd42724aee31018b0bb53f4cb04971423be664

USB: ehci tdi : let's tdi_reset set host mode
author	Matthieu CASTET <matthieu.castet@xxxxxxxxxx>	
	Mon, 6 Sep 2010 16:26:56 +0000 (18:26 +0200)
committer	Greg Kroah-Hartman <gregkh@xxxxxxx>	
	Fri, 22 Oct 2010 17:21:29 +0000 (10:21 -0700)


Signed-off-by: Michael Trimarchi <trimarchi@xxxxxxxxxxxxxxxx>
Cc: Matthieu CASTET <matthieu.castet@xxxxxxxxxx>
Cc: Daniel Mack <daniel@xxxxxxxx>
Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
index ac9c4d7..0bd1a0c 100644
--- a/drivers/usb/host/ehci-mxc.c
+++ b/drivers/usb/host/ehci-mxc.c
@@ -26,6 +26,7 @@
 #include <mach/mxc_ehci.h>
 
 #define ULPI_VIEWPORT_OFFSET	0x170
+#define PORTSC_OFFSET		0x184
 
 struct ehci_mxc_priv {
 	struct clk *usbclk, *ahbclk;
@@ -189,7 +190,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
 	}
 
 	/* set up the PORTSCx register */
-	ehci_writel(ehci, pdata->portsc, &ehci->regs->port_status[0]);
+	writel(pdata->portsc, hcd->regs + PORTSC_OFFSET);
 	mdelay(10);
 
 	/* setup specific usb hw */

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

  Powered by Linux