usb: hub: Don't disable LPM completely if device initiated LPM fails
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 14 Mar 2025 14:19:58 +0000 (16:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 14:08:34 +0000 (16:08 +0200)
commitbf6e36a033140da67238bce15e1199e37065810d
treee0ef6b319db52ee022e4ce0bcb8c3bef51799b38
parentc8be504beb1e3110d3e037fb578f3c1cb586dc85
usb: hub: Don't disable LPM completely if device initiated LPM fails

Enabling device initiated USB3 link power management (LPM) may fail for
various reasons such as too long system exit latency, or link issues.

These are not good reason to disable hub initiated LPM U1/U2
states, especially as it requires sending more requests over a
possibly broken link, causing the hub work to block for even longer.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250314142000.93090-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c