usb: host: plat: Enable xHCI plat runtime PM
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 19 Apr 2017 13:55:45 +0000 (16:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Apr 2017 17:59:16 +0000 (19:59 +0200)
commitb0c69b4bace3703a29e08dda2b5a10e1073cb9cd
treefa90faddd1559ccee248c84dbdbab19bdf8cc141
parent21470e32ca7f976bf131aa3c7b54019d07f7d821
usb: host: plat: Enable xHCI plat runtime PM

Enable the xHCI plat runtime PM for parent device to suspend/resume
xHCI. Also call pm_runtime_forbid() in probe() function to force users
to explicitly enable runtime pm using power/control in sysfs, in case
some parent devices didn't implement runtime PM callbacks.

[set do_wakeup to true when runtime suspending -Mathias]
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c