public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: Kampalus <kampalus@protonmail.ch>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] usb: quirks: disable LPM for Xiaomi fastboot
Date: Fri, 23 May 2025 06:28:07 +0200	[thread overview]
Message-ID: <2025052315-divinity-attendee-5e5a@gregkh> (raw)
In-Reply-To: <NlJ7bhWZBDatLxx8gt6X9CKi8u2oiRtCatIn6yHo68o8KUYM-qBCqPyNLSbCQx6th39-0uMLtTk18AYC4TQFj-aHEt2Xw9rPJzWMFgWexmI=@protonmail.ch>

On Thu, May 22, 2025 at 08:11:07PM +0000, Kampalus wrote:
> Both Xiaomi smartphones and AMD Ryzen systems have sketchy USB setups. When combined, fastboot
> fails to read and write data properly. Disabling Link Power Management works around that.
> 
> Despite only being useful for certain setups, let's enable this globally as it does
> not hurt healthy setups.
> 
> Signed-off-by: Kampalus <kampalus@protonmail.ch>
> ---
>  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 13171454f..57f747776 100644
> --- a/drivers/usb/core/quirks.c
> +++ b/drivers/usb/core/quirks.c
> @@ -552,6 +552,9 @@ static const struct usb_device_id usb_quirk_list[] = {
>  	/* INTEL VALUE SSD */
>  	{ USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME },
>  
> +	/* Xiaomi smartphones in fastboot mode */
> +	{ USB_DEVICE(0x18d1, 0xd00d), .driver_info = USB_QUIRK_NO_LPM },

Did you miss the comment at the top of this structure saying what order
this should be in?

Please fix.

Also, I need a "full" name for a patch to be accepted.

thanks,

greg k-h

      reply	other threads:[~2025-05-23  4:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-22 20:11 [PATCH] usb: quirks: disable LPM for Xiaomi fastboot Kampalus
2025-05-23  4:28 ` gregkh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2025052315-divinity-attendee-5e5a@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=kampalus@protonmail.ch \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox