mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
USB: fix usb host connect detect timer.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user