dwc3-pci.c (0aea30a07ec6b50de0fc5f5b2ec34a68ead86b61) dwc3-pci.c (a03e2ddab8e735e2cc315609b297b300e9cc60d2)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * dwc3-pci.c - PCI Specific glue layer
4 *
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com
6 *
7 * Authors: Felipe Balbi <balbi@ti.com>,
8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>

--- 272 unchanged lines hidden (view full) ---

281#ifdef CONFIG_PM
282static void dwc3_pci_resume_work(struct work_struct *work)
283{
284 struct dwc3_pci *dwc = container_of(work, struct dwc3_pci, wakeup_work);
285 struct platform_device *dwc3 = dwc->dwc3;
286 int ret;
287
288 ret = pm_runtime_get_sync(&dwc3->dev);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * dwc3-pci.c - PCI Specific glue layer
4 *
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com
6 *
7 * Authors: Felipe Balbi <balbi@ti.com>,
8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>

--- 272 unchanged lines hidden (view full) ---

281#ifdef CONFIG_PM
282static void dwc3_pci_resume_work(struct work_struct *work)
283{
284 struct dwc3_pci *dwc = container_of(work, struct dwc3_pci, wakeup_work);
285 struct platform_device *dwc3 = dwc->dwc3;
286 int ret;
287
288 ret = pm_runtime_get_sync(&dwc3->dev);
289 if (ret) {
289 if (ret < 0) {
290 pm_runtime_put_sync_autosuspend(&dwc3->dev);
291 return;
292 }
293
294 pm_runtime_mark_last_busy(&dwc3->dev);
295 pm_runtime_put_sync_autosuspend(&dwc3->dev);
296}
297#endif

--- 263 unchanged lines hidden ---
290 pm_runtime_put_sync_autosuspend(&dwc3->dev);
291 return;
292 }
293
294 pm_runtime_mark_last_busy(&dwc3->dev);
295 pm_runtime_put_sync_autosuspend(&dwc3->dev);
296}
297#endif

--- 263 unchanged lines hidden ---