diff options
author | Sangwook Lee <sangwook.lee@linaro.org> | 2012-03-07 10:23:36 +0000 |
---|---|---|
committer | Sangwook Lee <sangwook.lee@linaro.org> | 2012-03-07 10:23:36 +0000 |
commit | d75257191b9f41e511bd1bb55251ebc8ec745036 (patch) | |
tree | 6cd46549ec9d0d974374de0cee8e8affc3a37cd1 | |
parent | b828ecbe73c7d60285913a9def974ab96aaebedc (diff) |
USB: ehci-s5p.c: fix kernel panicsandroid-3.0.4-2012.03
Fix ECHI register address to fix kernel panic
s5p_ehci_probe+0x1c0/0x264
Signed-off-by: Sangwook Lee <sangwook.lee@linaro.org>
-rw-r--r-- | drivers/usb/host/ehci-s5p.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c index 1c0b4d52f59e..957aed4e8722 100644 --- a/drivers/usb/host/ehci-s5p.c +++ b/drivers/usb/host/ehci-s5p.c @@ -146,8 +146,7 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev) ehci->regs = hcd->regs + HC_LENGTH(ehci, readl(&ehci->caps->hc_capbase)); - writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + - EHCI_INSNREG00_BURST_ENABLE); + writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + EHCI_INSREG00); dbg_hcs_params(ehci, "reset"); dbg_hcc_params(ehci, "reset"); @@ -257,8 +256,7 @@ static int s5p_ehci_resume(struct platform_device *pdev) /* Mark hardware accessible again as we are out of D3 state by now */ set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); - writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + - EHCI_INSNREG00_BURST_ENABLE); + writel(EHCI_INSNREG00_BURST_ENABLE, hcd->regs + EHCI_INSREG00); /* If CF is still set, we maintained PCI Vaux power. * Just undo the effect of ehci_pci_suspend(). |