USB: fix usb host connect detect timer.
authorwlf <wulf@rock-chips.com>
Sun, 28 Sep 2014 02:22:40 +0000 (10:22 +0800)
committerwlf <wulf@rock-chips.com>
Sun, 28 Sep 2014 02:22:40 +0000 (10:22 +0800)
drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c
drivers/usb/host/ehci-rockchip.c

index 0f6eb8a95c99f6c8c26c6a8bb0394d7a745981d7..43527f8763ceddd2680201203f9e1b1652c7030a 100755 (executable)
@@ -637,7 +637,7 @@ int host20_hcd_init(struct platform_device *_dev)
        dwc_otg_hcd->connect_detect_timer.function = dwc_otg_hcd_connect_detect;
        dwc_otg_hcd->connect_detect_timer.data = (unsigned long)(dwc_otg_hcd);
        init_timer(&dwc_otg_hcd->connect_detect_timer);
-       mod_timer(&dwc_otg_hcd->connect_detect_timer, jiffies + (HZ << 3));
+       mod_timer(&dwc_otg_hcd->connect_detect_timer, jiffies + (HZ << 1));
 
        INIT_DELAYED_WORK(&dwc_otg_hcd->host_enable_work, dwc_otg_hcd_enable);
        return 0;
index 03217cd22e7ea9e67f155db8db77737ae5138490..207d6f5301f85bc4f1826a0b4652589425d8c0b9 100755 (executable)
@@ -415,7 +415,7 @@ static int ehci_rk_probe(struct platform_device *pdev)
        rk_ehci->connect_detect_timer.function = rk_ehci_hcd_connect_detect;
        rk_ehci->connect_detect_timer.data = (unsigned long)(rk_ehci);
        init_timer(&rk_ehci->connect_detect_timer);
-       mod_timer(&rk_ehci->connect_detect_timer, jiffies + (HZ << 3));
+       mod_timer(&rk_ehci->connect_detect_timer, jiffies + (HZ << 1));
        INIT_DELAYED_WORK(&rk_ehci->host_enable_work, rk_ehci_hcd_enable);
 
        ehci_port_power(ehci, 0);