]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Implement session bit based runtime PM for musb-core
authorTony Lindgren <tony@atomide.com>
Tue, 13 Sep 2016 02:48:28 +0000 (21:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 15:20:02 +0000 (17:20 +0200)
commit3f31edf3d9295a5f7f47781619add1d52e44613b
treeba071464e0bb05325008b1f14865b2f225cc35e7
parent157897e6cf970b347b647c2d0e1e1105151cc6be
usb: musb: Implement session bit based runtime PM for musb-core

We want to keep musb enabled always when the session bit is
set. This simplifies the PM runtime and allows making it more
generic across the various glue layers.

So far the only exception to just following the session bit is
host mode disconnect where the session bit stays set.

In that case, just allow PM and let the PM runtime autoidle
timeout deal with it.

Signed-off-by: Tony Lindgren <tony@atomide.com>
[b-liu@ti.com: changed using dev_dbg() to musb_dbg()]
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h