diff options
author | Florian Fainelli <florian@openwrt.org> | 2011-08-10 11:37:21 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2011-08-10 11:37:21 +0000 |
commit | 0e40c19b45e2e93e738eab14313e296a7256fe99 (patch) | |
tree | 23cd049ecf5208949f78e0fafc2caf6c887dcbdf /target/linux/brcm63xx/patches-3.1 | |
parent | 458716389c2cc7542e6c8efabc1fde8ad61d4137 (diff) | |
download | mtk-20170518-0e40c19b45e2e93e738eab14313e296a7256fe99.zip mtk-20170518-0e40c19b45e2e93e738eab14313e296a7256fe99.tar.gz mtk-20170518-0e40c19b45e2e93e738eab14313e296a7256fe99.tar.bz2 |
add ignore_oc in struct ehci_hcd
SVN-Revision: 27945
Diffstat (limited to 'target/linux/brcm63xx/patches-3.1')
-rw-r--r-- | target/linux/brcm63xx/patches-3.1/011-add_bcm63xx_ehci_controller.patch | 5 | ||||
-rw-r--r-- | target/linux/brcm63xx/patches-3.1/210-no_ehci_over_current_check.patch | 17 |
2 files changed, 3 insertions, 19 deletions
diff --git a/target/linux/brcm63xx/patches-3.1/011-add_bcm63xx_ehci_controller.patch b/target/linux/brcm63xx/patches-3.1/011-add_bcm63xx_ehci_controller.patch index 397562c..62c39c3 100644 --- a/target/linux/brcm63xx/patches-3.1/011-add_bcm63xx_ehci_controller.patch +++ b/target/linux/brcm63xx/patches-3.1/011-add_bcm63xx_ehci_controller.patch @@ -7,7 +7,7 @@ Signed-off-by: Maxime Bizon <mbizon@freebox.fr> --- /dev/null +++ b/drivers/usb/host/ehci-bcm63xx.c -@@ -0,0 +1,154 @@ +@@ -0,0 +1,155 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -118,9 +118,10 @@ Signed-off-by: Maxime Bizon <mbizon@freebox.fr> + ehci->big_endian_desc = 0; + ehci->caps = hcd->regs; + ehci->regs = hcd->regs + -+ HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase)); ++ HC_LENGTH(ehci_readl(ehci, &ehci->caps->hc_capbase)); + ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params); + ehci->sbrn = 0x20; ++ ehci->ignore_oc = 1; + + ret = usb_add_hcd(hcd, irq, IRQF_DISABLED); + if (ret) diff --git a/target/linux/brcm63xx/patches-3.1/210-no_ehci_over_current_check.patch b/target/linux/brcm63xx/patches-3.1/210-no_ehci_over_current_check.patch deleted file mode 100644 index bb5d9e7..0000000 --- a/target/linux/brcm63xx/patches-3.1/210-no_ehci_over_current_check.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/drivers/usb/host/ehci-hub.c -+++ b/drivers/usb/host/ehci-hub.c -@@ -816,12 +816,14 @@ static int ehci_hub_control ( - * power switching; they're allowed to just limit the - * current. khubd will turn the power back on. - */ -+#ifndef CONFIG_BCM63XX - if ((temp & PORT_OC) && HCS_PPC(ehci->hcs_params)) { - ehci_writel(ehci, - temp & ~(PORT_RWC_BITS | PORT_POWER), - status_reg); - temp = ehci_readl(ehci, status_reg); - } -+#endif - } - - /* whoever resumes must GetPortStatus to complete it!! */ |