浏览代码

usb: dwc3: core: allow device to runtime_suspend several times

After going through runtime_suspend/runtime_resume
cycle once we would be left with an unbalanced
pm_runtime_get() call. Fix that by making sure that
we try to suspend right after resuming so things are
balanced and device can runtime_suspend again.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Felipe Balbi 9 年之前
父节点
当前提交
b74c2d875b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/usb/dwc3/core.c

+ 1 - 0
drivers/usb/dwc3/core.c

@@ -1192,6 +1192,7 @@ static int dwc3_runtime_resume(struct device *dev)
 	}
 	}
 
 
 	pm_runtime_mark_last_busy(dev);
 	pm_runtime_mark_last_busy(dev);
+	pm_runtime_put(dev);
 
 
 	return 0;
 	return 0;
 }
 }