USB: fix usb host connect detect timer.

This commit is contained in:
wlf
2014-09-28 10:22:40 +08:00
parent 51077c0487
commit 7889d6f702
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);