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)
commitc2cd3452d5f8b66d49a73138fba5baadd5b489bd
tree4b95f0256bee66ab293d0a1dbcc51b2f50b7a393
parente2e77a94078bd4d459ac8267e7b24eece1e621db
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