Skip to content

Commit 8f1985f

Browse files
matnymangregkh
authored andcommitted
USB: Add USB_QUIRK_NO_LPM quirk for sony xperia xz1 smartphone
commit 159daf1 upstream. The fastboot tool for communicating with Android bootloaders does not work reliably with this device if USB 2 Link Power Management (LPM) is enabled. Various fastboot commands are affected, including the following, which usually reproduces the problem within two tries: fastboot getvar kernel getvar:kernel FAILED (remote: 'GetVar Variable Not found') This issue was hidden on many systems up until commit 63a1f84 ("xhci: stored cached port capability values in one place") as the xhci driver failed to detect USB 2 LPM support if USB 3 ports were listed before USB 2 ports in the "supported protocol capabilities". Adding the quirk resolves the issue. No drawbacks are expected since the device uses different USB product IDs outside of fastboot mode, and since fastboot commands worked before, until LPM was enabled on the tested system by the aforementioned commit. Based on a patch from Forest <[email protected]> from which most of the code and commit message is taken. Cc: stable <[email protected]> Reported-by: Forest <[email protected]> Closes: https://lore.kernel.org/[email protected] Tested-by: Forest <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d28cf6c commit 8f1985f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/usb/core/quirks.c

+3
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ static const struct usb_device_id usb_quirk_list[] = {
432432
{ USB_DEVICE(0x0c45, 0x7056), .driver_info =
433433
USB_QUIRK_IGNORE_REMOTE_WAKEUP },
434434

435+
/* Sony Xperia XZ1 Compact (lilac) smartphone in fastboot mode */
436+
{ USB_DEVICE(0x0fce, 0x0dde), .driver_info = USB_QUIRK_NO_LPM },
437+
435438
/* Action Semiconductor flash disk */
436439
{ USB_DEVICE(0x10d6, 0x2200), .driver_info =
437440
USB_QUIRK_STRING_FETCH_255 },

0 commit comments

Comments
 (0)