]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Update to use PM runtime autosuspend
authorTony Lindgren <tony@atomide.com>
Tue, 31 May 2016 15:05:11 +0000 (10:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 21:58:59 +0000 (14:58 -0700)
commitb5e4e1ac9f1451f6504e3db0fb2579efde089b84
tree21c887c1fd8f5428feff8e62cd1519b5df2d76ed
parent1f9885a3eaedf7c1bfe6e56bddf9d09c126bdea7
usb: musb: Update to use PM runtime autosuspend

Let's make the PM runtime use the standard autosuspend calls.
Commit 19507825729c ("PM / runtime: Re-init runtime PM states at probe
error and driver unbind") means we must pair use_autosuspend with
dont_use_autosuspend and then use put_sync to properly idle the
device.

Note that we'll be removing the PM runtime calls from the glue
layer to the MUSB core in the next patch. And we can also remove
the pointless FIXME comment now.

Signed-off-by: Tony Lindgren <tony@atomide.com>
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_gadget.c
drivers/usb/musb/omap2430.c