mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-13 15:53:56 +08:00
usb: hcd: move controller wakeup setting initialization to individual driver
Individual controller driver has different requirement for wakeup setting, so move it from core to itself. In order to align with current etting the default wakeup setting is enabled (except for chipidea host). Pass compile test with below commands: make O=outout/all allmodconfig make -j$CPU_NUM O=outout/all drivers/usb Signed-off-by: Peter Chen <peter.chen@freescale.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c4962e03f4
commit
3c9740a117
@ -2921,6 +2921,8 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq,
|
||||
if (retval < 0)
|
||||
goto error3;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
dwc2_hcd_dump_state(hsotg);
|
||||
|
||||
dwc2_enable_global_interrupts(hsotg);
|
||||
|
@ -3498,6 +3498,7 @@ static int octeon_usb_driver_probe(struct device *dev)
|
||||
kfree(hcd);
|
||||
return -1;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
dev_dbg(dev, "Registered HCD for port %d on irq %d\n", usb_num, irq);
|
||||
|
||||
|
@ -2270,6 +2270,8 @@ static int oz_plat_probe(struct platform_device *dev)
|
||||
usb_put_hcd(hcd);
|
||||
return -1;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
spin_lock_bh(&g_hcdlock);
|
||||
g_ozhcd = ozhcd;
|
||||
spin_unlock_bh(&g_hcdlock);
|
||||
|
@ -384,6 +384,8 @@ int c67x00_hcd_probe(struct c67x00_sie *sie)
|
||||
goto err2;
|
||||
}
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
spin_lock_irqsave(&sie->lock, flags);
|
||||
sie->private_data = c67x00;
|
||||
sie->irq = c67x00_hcd_irq;
|
||||
|
@ -282,6 +282,7 @@ int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
|
||||
if (retval != 0)
|
||||
goto unmap_registers;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
if (pci_dev_run_wake(dev))
|
||||
pm_runtime_put_noidle(&dev->dev);
|
||||
|
@ -2712,12 +2712,6 @@ int usb_add_hcd(struct usb_hcd *hcd,
|
||||
if (hcd->uses_new_polling && HCD_POLL_RH(hcd))
|
||||
usb_hcd_poll_rh_status(hcd);
|
||||
|
||||
/*
|
||||
* Host controllers don't generate their own wakeup requests;
|
||||
* they only forward requests from the root hub. Therefore
|
||||
* controllers should always be enabled for remote wakeup.
|
||||
*/
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return retval;
|
||||
|
||||
error_create_attr_group:
|
||||
|
@ -153,6 +153,7 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev)
|
||||
retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
|
||||
if (retval)
|
||||
goto fail_add_hcd;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return retval;
|
||||
|
||||
|
@ -166,6 +166,7 @@ skip_phy:
|
||||
dev_err(&pdev->dev, "Failed to add USB HCD\n");
|
||||
goto fail_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
platform_set_drvdata(pdev, hcd);
|
||||
|
||||
|
@ -138,6 +138,7 @@ static int usb_hcd_fsl_probe(const struct hc_driver *driver,
|
||||
retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
|
||||
if (retval != 0)
|
||||
goto err4;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
#ifdef CONFIG_USB_OTG
|
||||
if (pdata->operating_mode == FSL_USB2_DR_OTG) {
|
||||
|
@ -140,6 +140,7 @@ static int ehci_hcd_grlib_probe(struct platform_device *op)
|
||||
if (rv)
|
||||
goto err_ioremap;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
err_ioremap:
|
||||
|
@ -257,6 +257,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
|
||||
"failed to add hcd with err %d\n", retval);
|
||||
goto err_set_vbus;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
}
|
||||
|
||||
if (pdata->private_init)
|
||||
|
@ -155,6 +155,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
|
||||
if (ret)
|
||||
goto err_add;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
err_add:
|
||||
|
@ -158,6 +158,7 @@ static int ehci_octeon_drv_probe(struct platform_device *pdev)
|
||||
dev_dbg(&pdev->dev, "failed to add hcd with err %d\n", ret);
|
||||
goto err3;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
platform_set_drvdata(pdev, hcd);
|
||||
|
||||
|
@ -215,6 +215,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
|
||||
dev_err(dev, "failed to add hcd with err %d\n", ret);
|
||||
goto err_pm_runtime;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
/*
|
||||
* Bring PHYs out of reset for non PHY modes.
|
||||
|
@ -252,6 +252,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev)
|
||||
if (err)
|
||||
goto err4;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
err4:
|
||||
|
@ -132,6 +132,7 @@ static int ehci_platform_probe(struct platform_device *dev)
|
||||
if (err)
|
||||
goto err_put_hcd;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
platform_set_drvdata(dev, hcd);
|
||||
|
||||
return err;
|
||||
|
@ -210,8 +210,10 @@ int usb_hcd_msp_probe(const struct hc_driver *driver,
|
||||
|
||||
|
||||
retval = usb_add_hcd(hcd, res->start, IRQF_SHARED);
|
||||
if (retval == 0)
|
||||
if (retval == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
}
|
||||
|
||||
usb_remove_hcd(hcd);
|
||||
err3:
|
||||
|
@ -169,6 +169,7 @@ static int ehci_hcd_ppc_of_probe(struct platform_device *op)
|
||||
if (rv)
|
||||
goto err_ioremap;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
err_ioremap:
|
||||
|
@ -189,6 +189,7 @@ static int ps3_ehci_probe(struct ps3_system_bus_device *dev)
|
||||
goto fail_add_hcd;
|
||||
}
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return result;
|
||||
|
||||
fail_add_hcd:
|
||||
|
@ -126,6 +126,7 @@ static int ehci_hcd_sead3_drv_probe(struct platform_device *pdev)
|
||||
IRQF_SHARED);
|
||||
if (ret == 0) {
|
||||
platform_set_drvdata(pdev, hcd);
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -151,6 +151,7 @@ static int ehci_hcd_sh_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "Failed to add hcd");
|
||||
goto fail_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
priv->hcd = hcd;
|
||||
platform_set_drvdata(pdev, priv);
|
||||
|
@ -130,6 +130,7 @@ static int spear_ehci_hcd_drv_probe(struct platform_device *pdev)
|
||||
if (retval)
|
||||
goto err_stop_ehci;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return retval;
|
||||
|
||||
err_stop_ehci:
|
||||
|
@ -455,6 +455,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "Failed to add USB HCD\n");
|
||||
goto cleanup_otg_set_host;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return err;
|
||||
|
||||
|
@ -170,6 +170,7 @@ static int ehci_hcd_tilegx_drv_probe(struct platform_device *pdev)
|
||||
ret = usb_add_hcd(hcd, pdata->irq, IRQF_SHARED);
|
||||
if (ret == 0) {
|
||||
platform_set_drvdata(pdev, hcd);
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,7 @@ static int usb_w90x900_probe(const struct hc_driver *driver,
|
||||
if (retval != 0)
|
||||
goto err4;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return retval;
|
||||
err4:
|
||||
iounmap(hcd->regs);
|
||||
|
@ -191,8 +191,10 @@ static int ehci_hcd_xilinx_of_probe(struct platform_device *op)
|
||||
ehci->caps = hcd->regs + 0x100;
|
||||
|
||||
rv = usb_add_hcd(hcd, irq, 0);
|
||||
if (rv == 0)
|
||||
if (rv == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
}
|
||||
|
||||
err_irq:
|
||||
usb_put_hcd(hcd);
|
||||
|
@ -754,6 +754,8 @@ static int of_fhci_probe(struct platform_device *ofdev)
|
||||
if (ret < 0)
|
||||
goto err_add_hcd;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
fhci_dfs_create(fhci);
|
||||
|
||||
return 0;
|
||||
|
@ -5889,6 +5889,7 @@ static int fotg210_hcd_probe(struct platform_device *pdev)
|
||||
dev_err(dev, "failed to add hcd with err %d\n", retval);
|
||||
goto fail_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return retval;
|
||||
|
||||
|
@ -5798,6 +5798,7 @@ static int fusbh200_hcd_probe(struct platform_device *pdev)
|
||||
dev_err(dev, "failed to add hcd with err %d\n", retval);
|
||||
goto fail_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return retval;
|
||||
|
||||
|
@ -791,6 +791,7 @@ static int hwahc_probe(struct usb_interface *usb_iface,
|
||||
dev_err(dev, "Cannot add HCD: %d\n", result);
|
||||
goto error_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(usb_hcd->self.controller);
|
||||
result = wusbhc_b_create(&hwahc->wusbhc);
|
||||
if (result < 0) {
|
||||
dev_err(dev, "Cannot setup phase B of WUSBHC: %d\n", result);
|
||||
|
@ -1910,6 +1910,7 @@ static int imx21_probe(struct platform_device *pdev)
|
||||
dev_err(imx21->dev, "usb_add_hcd() returned %d\n", ret);
|
||||
goto failed_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return 0;
|
||||
|
||||
|
@ -1645,6 +1645,8 @@ static int isp116x_probe(struct platform_device *pdev)
|
||||
if (ret)
|
||||
goto err6;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
ret = create_debug_file(isp116x);
|
||||
if (ret) {
|
||||
ERR("Couldn't create debugfs entry\n");
|
||||
|
@ -2746,6 +2746,8 @@ static int isp1362_probe(struct platform_device *pdev)
|
||||
retval = usb_add_hcd(hcd, irq, irq_flags | IRQF_SHARED);
|
||||
if (retval != 0)
|
||||
goto err6;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
pr_info("%s, irq %d\n", hcd->product_desc, irq);
|
||||
|
||||
create_debug_file(isp1362_hcd);
|
||||
|
@ -2250,6 +2250,7 @@ struct usb_hcd *isp1760_register(phys_addr_t res_start, resource_size_t res_len,
|
||||
ret = usb_add_hcd(hcd, irq, irqflags);
|
||||
if (ret)
|
||||
goto err_unmap;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return hcd;
|
||||
|
||||
|
@ -200,8 +200,10 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,
|
||||
at91_start_hc(pdev);
|
||||
|
||||
retval = usb_add_hcd(hcd, pdev->resource[1].start, IRQF_SHARED);
|
||||
if (retval == 0)
|
||||
if (retval == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return retval;
|
||||
}
|
||||
|
||||
/* Error handling */
|
||||
at91_stop_hc(pdev);
|
||||
|
@ -348,6 +348,8 @@ static int usb_hcd_da8xx_probe(const struct hc_driver *driver,
|
||||
if (error)
|
||||
goto err4;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
if (hub->ocic_notify) {
|
||||
error = hub->ocic_notify(ohci_da8xx_ocic_handler);
|
||||
if (!error)
|
||||
|
@ -146,6 +146,7 @@ skip_phy:
|
||||
dev_err(&pdev->dev, "Failed to add USB HCD\n");
|
||||
goto fail_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
fail_add_hcd:
|
||||
|
@ -217,6 +217,7 @@ static int jz4740_ohci_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "Failed to add hcd: %d\n", ret);
|
||||
goto err_disable;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return 0;
|
||||
|
||||
|
@ -274,8 +274,10 @@ static int ohci_hcd_nxp_probe(struct platform_device *pdev)
|
||||
|
||||
dev_info(&pdev->dev, "at 0x%p, irq %d\n", hcd->regs, hcd->irq);
|
||||
ret = usb_add_hcd(hcd, irq, 0);
|
||||
if (ret == 0)
|
||||
if (ret == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ohci_nxp_stop_hc();
|
||||
fail_resource:
|
||||
|
@ -171,6 +171,8 @@ static int ohci_octeon_drv_probe(struct platform_device *pdev)
|
||||
goto err3;
|
||||
}
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
platform_set_drvdata(pdev, hcd);
|
||||
|
||||
return 0;
|
||||
|
@ -367,6 +367,7 @@ static int usb_hcd_omap_probe (const struct hc_driver *driver,
|
||||
if (retval)
|
||||
goto err3;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
err3:
|
||||
iounmap(hcd->regs);
|
||||
|
@ -130,6 +130,7 @@ static int ohci_hcd_omap3_probe(struct platform_device *pdev)
|
||||
dev_dbg(dev, "failed to add hcd with err %d\n", ret);
|
||||
goto err_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return 0;
|
||||
|
||||
|
@ -108,6 +108,8 @@ static int ohci_platform_probe(struct platform_device *dev)
|
||||
if (err)
|
||||
goto err_put_hcd;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
platform_set_drvdata(dev, hcd);
|
||||
|
||||
return err;
|
||||
|
@ -147,8 +147,10 @@ static int ohci_hcd_ppc_of_probe(struct platform_device *op)
|
||||
ohci_hcd_init(ohci);
|
||||
|
||||
rv = usb_add_hcd(hcd, irq, 0);
|
||||
if (rv == 0)
|
||||
if (rv == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* by now, 440epx is known to show usb_23 erratum */
|
||||
np = of_find_compatible_node(NULL, NULL, "ibm,usb-ehci-440epx");
|
||||
|
@ -173,6 +173,7 @@ static int ps3_ohci_probe(struct ps3_system_bus_device *dev)
|
||||
goto fail_add_hcd;
|
||||
}
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return result;
|
||||
|
||||
fail_add_hcd:
|
||||
|
@ -442,8 +442,10 @@ int usb_hcd_pxa27x_probe (const struct hc_driver *driver, struct platform_device
|
||||
ohci->num_ports = 3;
|
||||
|
||||
retval = usb_add_hcd(hcd, irq, 0);
|
||||
if (retval == 0)
|
||||
if (retval == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return retval;
|
||||
}
|
||||
|
||||
pxa27x_stop_hc(pxa_ohci, &pdev->dev);
|
||||
err3:
|
||||
|
@ -395,6 +395,7 @@ static int usb_hcd_s3c2410_probe(const struct hc_driver *driver,
|
||||
if (retval != 0)
|
||||
goto err_ioremap;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
err_ioremap:
|
||||
|
@ -211,8 +211,10 @@ static int ohci_hcd_sa1111_probe(struct sa1111_dev *dev)
|
||||
goto err2;
|
||||
|
||||
ret = usb_add_hcd(hcd, dev->irq[1], 0);
|
||||
if (ret == 0)
|
||||
if (ret == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return ret;
|
||||
}
|
||||
|
||||
sa1111_stop_hc(dev);
|
||||
err2:
|
||||
|
@ -168,6 +168,7 @@ static int ohci_hcd_sm501_drv_probe(struct platform_device *pdev)
|
||||
retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
|
||||
if (retval)
|
||||
goto err5;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
/* enable power and unmask interrupts */
|
||||
|
||||
|
@ -103,8 +103,10 @@ static int spear_ohci_hcd_drv_probe(struct platform_device *pdev)
|
||||
ohci = hcd_to_ohci(hcd);
|
||||
|
||||
retval = usb_add_hcd(hcd, platform_get_irq(pdev, 0), 0);
|
||||
if (retval == 0)
|
||||
if (retval == 0) {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return retval;
|
||||
}
|
||||
|
||||
clk_disable_unprepare(sohci_p->clk);
|
||||
err_put_hcd:
|
||||
|
@ -159,6 +159,7 @@ static int ohci_hcd_tilegx_drv_probe(struct platform_device *pdev)
|
||||
ret = usb_add_hcd(hcd, pdata->irq, IRQF_SHARED);
|
||||
if (ret == 0) {
|
||||
platform_set_drvdata(pdev, hcd);
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -250,6 +250,7 @@ static int ohci_hcd_tmio_drv_probe(struct platform_device *dev)
|
||||
if (ret)
|
||||
goto err_add_hcd;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
if (ret == 0)
|
||||
return ret;
|
||||
|
||||
|
@ -3751,6 +3751,7 @@ static struct usb_hcd *oxu_create(struct platform_device *pdev,
|
||||
if (ret < 0)
|
||||
return ERR_PTR(ret);
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return hcd;
|
||||
}
|
||||
|
||||
|
@ -2514,6 +2514,7 @@ static int r8a66597_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "Failed to add hcd\n");
|
||||
goto clean_up3;
|
||||
}
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
return 0;
|
||||
|
||||
|
@ -1732,6 +1732,8 @@ sl811h_probe(struct platform_device *dev)
|
||||
if (retval != 0)
|
||||
goto err6;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
create_debug_file(sl811);
|
||||
return retval;
|
||||
|
||||
|
@ -3133,6 +3133,7 @@ static int u132_probe(struct platform_device *pdev)
|
||||
u132_u132_put_kref(u132);
|
||||
return retval;
|
||||
} else {
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
u132_monitor_queue_work(u132, 100);
|
||||
return 0;
|
||||
}
|
||||
|
@ -141,6 +141,7 @@ static int uhci_hcd_grlib_probe(struct platform_device *op)
|
||||
if (rv)
|
||||
goto err_uhci;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
err_uhci:
|
||||
|
@ -108,6 +108,7 @@ static int uhci_hcd_platform_probe(struct platform_device *pdev)
|
||||
if (ret)
|
||||
goto err_uhci;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
|
||||
err_uhci:
|
||||
|
@ -293,6 +293,7 @@ static int whc_probe(struct umc_dev *umc)
|
||||
dev_err(dev, "cannot add HCD: %d\n", ret);
|
||||
goto error_usb_add_hcd;
|
||||
}
|
||||
device_wakeup_enable(usb_hcd->self.controller);
|
||||
|
||||
ret = wusbhc_b_create(wusbhc);
|
||||
if (ret) {
|
||||
|
@ -139,6 +139,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
|
||||
ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
|
||||
if (ret)
|
||||
goto unmap_registers;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
/* USB 2.0 roothub is stored in the platform_device now. */
|
||||
hcd = platform_get_drvdata(pdev);
|
||||
|
@ -2657,6 +2657,7 @@ int musb_host_setup(struct musb *musb, int power_budget)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -669,6 +669,7 @@ static void msm_otg_start_host(struct usb_phy *phy, int on)
|
||||
pdata->setup_gpio(OTG_STATE_A_HOST);
|
||||
#ifdef CONFIG_USB
|
||||
usb_add_hcd(hcd, hcd->irq, IRQF_SHARED);
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
#endif
|
||||
} else {
|
||||
dev_dbg(phy->dev, "host off\n");
|
||||
|
@ -213,10 +213,12 @@ static void mv_otg_start_host(struct mv_otg *mvotg, int on)
|
||||
|
||||
hcd = bus_to_hcd(otg->host);
|
||||
|
||||
if (on)
|
||||
if (on) {
|
||||
usb_add_hcd(hcd, hcd->irq, IRQF_SHARED);
|
||||
else
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
} else {
|
||||
usb_remove_hcd(hcd);
|
||||
}
|
||||
#endif /* CONFIG_USB */
|
||||
}
|
||||
|
||||
|
@ -1469,6 +1469,7 @@ static int usbhsh_start(struct usbhs_priv *priv)
|
||||
ret = usb_add_hcd(hcd, 0, 0);
|
||||
if (ret < 0)
|
||||
return 0;
|
||||
device_wakeup_enable(hcd->self.controller);
|
||||
|
||||
/*
|
||||
* pipe initialize and enable DCP
|
||||
|
Loading…
Reference in New Issue
Block a user