]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 10:17:40 +0000 (12:17 +0200)
commita6ff6cbf1fabe7500d8ac25e133e3346db0a0fca
tree2ca523bced0accdb6814f8e7f58651561e994fcc
parentd1001ab41064c7fe7bffbc1d7c3921912f3ec32d
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