All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Jiayi Li <lijiayi@kylinos.cn>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: quirks: Add NO_LPM quirk for SanDisk Extreme 55AE
Date: Thu, 8 May 2025 07:27:56 +0200	[thread overview]
Message-ID: <2025050825-census-slum-6f37@gregkh> (raw)
In-Reply-To: <20250508033123.673964-1-lijiayi@kylinos.cn>

On Thu, May 08, 2025 at 11:31:23AM +0800, Jiayi Li wrote:
> This device exhibits I/O errors during file transfers due to unstable
> link power management (LPM) behavior. The kernel logs show repeated
> warm resets and eventual disconnection when LPM is enabled:
> 
> [ 3467.810740] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0020
> [ 3467.810740] usb usb2-port5: do warm reset
> [ 3467.866444] usb usb2-port5: not warm reset yet, waiting 50ms
> [ 3467.907407] sd 0:0:0:0: [sda] tag#12 sense submit err -19
> [ 3467.994423] usb usb2-port5: status 02c0, change 0001, 10.0 Gb/s
> [ 3467.994453] usb 2-5: USB disconnect, device number 4
> 
> The error -19 (ENODEV) occurs when the device disappears during write
> operations. Adding USB_QUIRK_NO_LPM disables link power management
> for this specific device, resolving the stability issues.
> 
> Signed-off-by: Jiayi Li <lijiayi@kylinos.cn>
> ---
>  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 36d3df7d040c..2bb70a34d4c5 100644
> --- a/drivers/usb/core/quirks.c
> +++ b/drivers/usb/core/quirks.c
> @@ -372,6 +372,9 @@ static const struct usb_device_id usb_quirk_list[] = {
>  	/* SanDisk Corp. SanDisk 3.2Gen1 */
>  	{ USB_DEVICE(0x0781, 0x55a3), .driver_info = USB_QUIRK_DELAY_INIT },
>  
> +	/* SanDisk Extreme 55AE */
> +        { USB_DEVICE(0x0781, 0x55ae), .driver_info = USB_QUIRK_NO_LPM },

Nit, you forgot to use a tab here :(

I think scripts/checkpatch.pl should have caught this, right?

thanks,

greg k-h

  reply	other threads:[~2025-05-08  5:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-08  3:31 [PATCH] usb: quirks: Add NO_LPM quirk for SanDisk Extreme 55AE Jiayi Li
2025-05-08  5:27 ` Greg KH [this message]
2025-05-30  7:18 ` [PATCH v2] " Jiayi Li

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=2025050825-census-slum-6f37@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=lijiayi@kylinos.cn \
    --cc=linux-kernel@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.