usb: xhci: Add helper function xhci_set_power_on().
authorGuoqing Zhang <guoqing.zhang@intel.com>
Fri, 7 Apr 2017 14:56:51 +0000 (17:56 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:33:45 +0000 (15:33 -0500)
commit5741cf447ab10a82c3fc76d38d261555f4cc924a
treef2da290ce21bf617af324a7309a4f36b8a18e01f
parent00c7c73e5c2e6149c9d38ea74a42a8c96a051a77
usb: xhci: Add helper function xhci_set_power_on().

Refactoring port power on/off related code into
a helper function xhci_set_power_on() which can
be reused when enabling test mode.

[set port state to neutral before writing port power -Mathias]
Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c