ar71xx: refresh 2.6.28 patches
[openwrt.git] / target / linux / coldfire / patches / 021-m5445x_usb_premerge.patch
1 From 3d7f85e904cf9dab191eeab9933ecac1e90d06e4 Mon Sep 17 00:00:00 2001
2 From: Bruce Schmid <duck@freescale.com>
3 Date: Thu, 29 Nov 2007 16:30:47 -0700
4 Subject: [PATCH] USB pre-merge
5
6 LTIBName: m5445x-usb-premerge
7 Signed-off-by: Duck <duck@freescale.com>
8 ---
9 drivers/usb/host/ehci-arc.c | 18 +++++++++++++++++-
10 1 files changed, 17 insertions(+), 1 deletions(-)
11
12 --- a/drivers/usb/host/ehci-arc.c
13 +++ b/drivers/usb/host/ehci-arc.c
14 @@ -373,14 +373,30 @@ static int ehci_fsl_drv_resume(struct pl
15 pr_debug("%s pdev=0x%p pdata=0x%p ehci=0x%p hcd=0x%p\n",
16 __FUNCTION__, pdev, pdata, ehci, hcd);
17
18 - pr_debug("%s ehci->regs=0x%p hcd->regs=0x%p",
19 + pr_debug("%s ehci->regs=0x%p hcd->regs=0x%p\n",
20 __FUNCTION__, ehci->regs, hcd->regs);
21
22 memcpy(ehci->regs, (void *)&usb_ehci_regs, sizeof(struct ehci_regs));
23 +
24 +#if 0 // DDD test
25 ehci_writel(ehci, usb_ehci_portsc, &ehci->regs->port_status[0]);
26 + printk("set portsc %08x %08x\n", usb_ehci_portsc,
27 + ehci_readl(ehci, &ehci->regs->port_status[0]));
28 + printk("set usbmode %08x\n",
29 + ehci_readl(ehci, &ehci->regs + FSL_SOC_USB_USBMODE));
30
31 tmp = USBMODE_CM_HOST | (pdata->es ? USBMODE_ES : 0);
32 ehci_writel(ehci, tmp, hcd->regs + FSL_SOC_USB_USBMODE);
33 +#else
34 + tmp = USBMODE_CM_HOST | (pdata->es ? USBMODE_ES : 0);
35 + ehci_writel(ehci, tmp, hcd->regs + FSL_SOC_USB_USBMODE);
36 + printk("tmp %08x set usbmode %08x\n", tmp,
37 + ehci_readl(ehci, hcd->regs + FSL_SOC_USB_USBMODE));
38 +
39 + ehci_writel(ehci, usb_ehci_portsc, &ehci->regs->port_status[0]);
40 + printk("set portsc %08x %08x\n", usb_ehci_portsc,
41 + ehci_readl(ehci, &ehci->regs->port_status[0]));
42 +#endif
43
44 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
45 hcd->state = HC_STATE_RUNNING;
This page took 0.038827 seconds and 5 git commands to generate.