summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2015-06-16 09:08:26 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-22 14:46:50 -0700
commit2d2a316765d956bc5cb6bb367b2ec52ca59ab8e9 (patch)
tree1adc52c5dfa57300afcb78af89b40c4af3a749a2 /net
parent7021deae9735871c67ac0cc1c6ab0bdf634b665e (diff)
downloadblackbird-op-linux-2d2a316765d956bc5cb6bb367b2ec52ca59ab8e9.tar.gz
blackbird-op-linux-2d2a316765d956bc5cb6bb367b2ec52ca59ab8e9.zip
usb: core: lpm: set lpm_capable for root hub device
Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed root hub. The intention of that change was to avoid touching usb core internal field, a.k.a. lpm_capable, and let usb core to set it by checking U1 and U2 exit latency values in the descriptor. Usb core checks and sets lpm_capable in hub_port_init(). Unfortunately, root hub is a special usb device as it has no parent. Hub_port_init() will never be called for a root hub device. That means lpm_capable will by no means be set for the root hub. As the result, lpm isn't functional at all in Linux kernel. This patch add the code to check and set lpm_capable when registering a root hub device. It could be back-ported to kernels as old as v3.15, that contains the Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports Link PM."). Cc: stable@vger.kernel.org # 3.15 Reported-by: Kevin Strasser <kevin.strasser@linux.intel.com> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud