aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-07-28 03:16:12 -0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-22 03:45:10 -0400
commitf6c274e11e3b31a5f95c23962b1ba593bd6a4759 (patch)
tree7453bbadaf707c53c7c9bcb68beef0e807bca195
parentfa8410b355251fd30341662a40ac6b22d3e38468 (diff)
usb: dwc3: pci: runtime_resume child device
During runtime_resume of dwc3-pci.c, we need to runtime suspend our child device (which is dwc3 proper) otherwise nothing will happen. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r--drivers/usb/dwc3/dwc3-pci.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index 2eb84d6c24a6..0a32430f4c41 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -243,6 +243,13 @@ static int dwc3_pci_runtime_suspend(struct device *dev)
243 return -EBUSY; 243 return -EBUSY;
244} 244}
245 245
246static int dwc3_pci_runtime_resume(struct device *dev)
247{
248 struct platform_device *dwc3 = dev_get_drvdata(dev);
249
250 return pm_runtime_get(&dwc3->dev);
251}
252
246static int dwc3_pci_pm_dummy(struct device *dev) 253static int dwc3_pci_pm_dummy(struct device *dev)
247{ 254{
248 /* 255 /*
@@ -259,7 +266,7 @@ static int dwc3_pci_pm_dummy(struct device *dev)
259 266
260static struct dev_pm_ops dwc3_pci_dev_pm_ops = { 267static struct dev_pm_ops dwc3_pci_dev_pm_ops = {
261 SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_pm_dummy, dwc3_pci_pm_dummy) 268 SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_pm_dummy, dwc3_pci_pm_dummy)
262 SET_RUNTIME_PM_OPS(dwc3_pci_runtime_suspend, dwc3_pci_pm_dummy, 269 SET_RUNTIME_PM_OPS(dwc3_pci_runtime_suspend, dwc3_pci_runtime_resume,
263 NULL) 270 NULL)
264}; 271};
265 272