]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: support continuous runtime PM with dual role
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Thu, 19 Mar 2020 10:02:07 +0000 (11:02 +0100)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 07:58:50 +0000 (10:58 +0300)
commitdfd03ebd0b4c53361a719dced2c68edb03343287
tree4b95f0256bee66ab293d0a1dbcc51b2f50b7a393
parentc23ad82ae573a9be8395eaca07dfae71e71f98a2
usb: dwc3: support continuous runtime PM with dual role

The DRD module calls dwc3_set_mode() on role switches, i.e. when a device is
being plugged in. In order to support continuous runtime power management when
plugging in / unplugging a cable, we need to call pm_runtime_get_sync() in
this path.

Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/core.c