]> asedeno.scripts.mit.edu Git - linux.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)
commit467d5c980709b262df288a0d0e7780f295c56882
treeba071464e0bb05325008b1f14865b2f225cc35e7
parent4d719209be3676936c27184cb9bff10f93f8fa64
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