* [PATCH] USB: Add LPM quirk for sony xperia xz1 compact
@ 2025-01-16 0:18 Forest
2025-01-16 10:10 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Forest @ 2025-01-16 0:18 UTC (permalink / raw)
To: linux-kernel; +Cc: Mathias Nyman, linux-usb, regressions
Since USB 2 LPM was enabled for this device by 63a1f8454962
("xhci: stored cached port capability values in one place"),
the fastboot tool for communicating with Android bootloaders no longer
works reliably. Various fastboot commands are affected, including the
following, which usually reproduces the problem within two tries:
fastboot getvar kernel
A typical error message when that command fails:
getvar:kernel FAILED (remote: 'GetVar Variable Not found')
Adding the quirk resolves the regression. No drawbacks are expected,
since the device uses different USB product IDs outside of fastboot
mode, and since fastboot commands worked until LPM was enabled by the
aforementioned commit.
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/hk8umj9lv4l4qguftdq1luqtdrpa1gks5l@sonic.net
Signed-off-by: Forest <forestix@nom.one>
---
drivers/usb/core/quirks.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
index 13171454f959..375a64e7e188 100644
--- a/drivers/usb/core/quirks.c
+++ b/drivers/usb/core/quirks.c
@@ -432,6 +432,9 @@ static const struct usb_device_id usb_quirk_list[] = {
{ USB_DEVICE(0x0c45, 0x7056), .driver_info =
USB_QUIRK_IGNORE_REMOTE_WAKEUP },
+ /* Sony Xperia XZ1 Compact (lilac) smartphone in fastboot mode */
+ { USB_DEVICE(0x0fce, 0x0dde), .driver_info = USB_QUIRK_NO_LPM },
+
/* Action Semiconductor flash disk */
{ USB_DEVICE(0x10d6, 0x2200), .driver_info =
USB_QUIRK_STRING_FETCH_255 },
base-commit: 619f0b6fad524f08d493a98d55bac9ab8895e3a6
--
2.39.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] USB: Add LPM quirk for sony xperia xz1 compact
2025-01-16 0:18 [PATCH] USB: Add LPM quirk for sony xperia xz1 compact Forest
@ 2025-01-16 10:10 ` Greg KH
2025-01-16 20:01 ` Forest
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2025-01-16 10:10 UTC (permalink / raw)
To: Forest; +Cc: linux-kernel, Mathias Nyman, linux-usb, regressions
On Wed, Jan 15, 2025 at 04:18:22PM -0800, Forest wrote:
> Since USB 2 LPM was enabled for this device by 63a1f8454962
> ("xhci: stored cached port capability values in one place"),
> the fastboot tool for communicating with Android bootloaders no longer
> works reliably. Various fastboot commands are affected, including the
> following, which usually reproduces the problem within two tries:
>
> fastboot getvar kernel
>
> A typical error message when that command fails:
>
> getvar:kernel FAILED (remote: 'GetVar Variable Not found')
>
> Adding the quirk resolves the regression. No drawbacks are expected,
> since the device uses different USB product IDs outside of fastboot
> mode, and since fastboot commands worked until LPM was enabled by the
> aforementioned commit.
>
> Cc: stable@vger.kernel.org
> Link: https://lore.kernel.org/hk8umj9lv4l4qguftdq1luqtdrpa1gks5l@sonic.net
> Signed-off-by: Forest <forestix@nom.one>
> ---
> drivers/usb/core/quirks.c | 3 +++
> 1 file changed, 3 insertions(+)
Always use scripts/get_maintainer.pl to get the correct people to cc:
Also, we need a "real" name here, sorry.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] USB: Add LPM quirk for sony xperia xz1 compact
2025-01-16 10:10 ` Greg KH
@ 2025-01-16 20:01 ` Forest
2025-01-17 6:10 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Forest @ 2025-01-16 20:01 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, Mathias Nyman, linux-usb, regressions
On Thu, 16 Jan 2025 11:10:50 +0100, Greg KH wrote:
>> Signed-off-by: Forest <forestix@nom.one>
>> ---
>> drivers/usb/core/quirks.c | 3 +++
>> 1 file changed, 3 insertions(+)
>
>Always use scripts/get_maintainer.pl to get the correct people to cc:
Okay. I'm not sure how to correct this. Should I submit a v2 patch,
even though the code hasn't changed?
>Also, we need a "real" name here, sorry.
Forest is my real name.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] USB: Add LPM quirk for sony xperia xz1 compact
2025-01-16 20:01 ` Forest
@ 2025-01-17 6:10 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2025-01-17 6:10 UTC (permalink / raw)
To: Forest; +Cc: linux-kernel, Mathias Nyman, linux-usb, regressions
On Thu, Jan 16, 2025 at 12:01:31PM -0800, Forest wrote:
> On Thu, 16 Jan 2025 11:10:50 +0100, Greg KH wrote:
>
> >> Signed-off-by: Forest <forestix@nom.one>
> >> ---
> >> drivers/usb/core/quirks.c | 3 +++
> >> 1 file changed, 3 insertions(+)
> >
> >Always use scripts/get_maintainer.pl to get the correct people to cc:
>
> Okay. I'm not sure how to correct this. Should I submit a v2 patch,
> even though the code hasn't changed?
Yes.
> >Also, we need a "real" name here, sorry.
>
> Forest is my real name.
The exact one you sign documents in your country with? If so, we can
take it off-list to work through the details.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-01-17 6:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-16 0:18 [PATCH] USB: Add LPM quirk for sony xperia xz1 compact Forest
2025-01-16 10:10 ` Greg KH
2025-01-16 20:01 ` Forest
2025-01-17 6:10 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox