usb: roles: intel_xhci: Enable runtime PM
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 24 May 2018 08:18:27 +0000 (11:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 May 2018 16:17:00 +0000 (18:17 +0200)
commitcb296846860531defe93ebf75221e280970907f0
tree9c3337c12c37617c6fc55e8ac7fdff0b4b4a532d
parentc9359f41620764822842d0c25908efdc019833f3
usb: roles: intel_xhci: Enable runtime PM

This fixes an issue where the mux does not get configured
when the parent device is suspended. The registers for this
mux are mapped to the parent device MMIO (usually xHCI PCI
device), so in order for the driver to be able to program
the registers, the parent device must be resumed.

Reported-by: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Fixes: f6fb9ec02be1 ("usb: roles: Add Intel xHCI USB role switch driver")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/roles/intel-xhci-usb-role-switch.c