From: Greg KH <gregkh@linuxfoundation.org>
To: Pacho Ramos <pachoramos@gmail.com>,
Laura Abbott <labbott@fedoraproject.org>
Cc: linux-usb@vger.kernel.org
Subject: Re: JMicron USB to ATA/ATAPI Bridge requires usb-storage quirks to disable uas
Date: Mon, 18 Nov 2019 12:28:37 +0100 [thread overview]
Message-ID: <20191118112837.GE156486@kroah.com> (raw)
In-Reply-To: <CAHG43MtDYqiV6pye91D8_bA-4bMvVHWFHjsDgEMsmhh2n-Z2ww@mail.gmail.com>
On Mon, Nov 18, 2019 at 11:07:55AM +0100, Pacho Ramos wrote:
> Hello,
>
> I would like to forward the patch that is being used for years in
> Fedora and Gentoo to fix connectivity issues of JMicron devices with
> UAS when they got into idle state:
> https://bugzilla.redhat.com/show_bug.cgi?id=1260207
> https://bugs.gentoo.org/640082
>
> The problem is still valid with current kernels, then, I guess the
> patch wasn't forwarded here or got forgotten for some reason. This
> patch works fine for current kernel 4.13.11 too
Laura, any reason this patch was never sent upstream to us? Any
objection for the patch below to be merged?
thanks,
greg k-h
> From d02a55182307c01136b599fd048b4679f259a84e Mon Sep 17 00:00:00 2001
> From: Laura Abbott <labbott@fedoraproject.org>
> Date: Tue, 8 Sep 2015 09:53:38 -0700
> Subject: [PATCH] usb-storage: Disable UAS on JMicron SATA enclosure
>
> Steve Ellis reported incorrect block sizes and alignement
> offsets with a SATA enclosure. Adding a quirk to disable
> UAS fixes the problems.
>
> Reported-by: Steven Ellis <sellis@redhat.com>
> Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
> ---
> drivers/usb/storage/unusual_uas.h | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusual_uas.h
> index c85ea53..216d93d 100644
> --- a/drivers/usb/storage/unusual_uas.h
> +++ b/drivers/usb/storage/unusual_uas.h
> @@ -141,12 +141,15 @@ UNUSUAL_DEV(0x2109, 0x0711, 0x0000, 0x9999,
> USB_SC_DEVICE, USB_PR_DEVICE, NULL,
> US_FL_NO_ATA_1X),
>
> -/* Reported-by: Takeo Nakayama <javhera@gmx.com> */
> +/*
> + * Initially Reported-by: Takeo Nakayama <javhera@gmx.com>
> + * UAS Ignore Reported by Steven Ellis <sellis@redhat.com>
> + */
> UNUSUAL_DEV(0x357d, 0x7788, 0x0000, 0x9999,
> "JMicron",
> "JMS566",
> USB_SC_DEVICE, USB_PR_DEVICE, NULL,
> - US_FL_NO_REPORT_OPCODES),
> + US_FL_NO_REPORT_OPCODES | US_FL_IGNORE_UAS),
>
> /* Reported-by: Hans de Goede <hdegoede@redhat.com> */
> UNUSUAL_DEV(0x4971, 0x1012, 0x0000, 0x9999,
> --
> 2.4.3
>
next prev parent reply other threads:[~2019-11-18 11:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-18 10:07 JMicron USB to ATA/ATAPI Bridge requires usb-storage quirks to disable uas Pacho Ramos
2019-11-18 11:28 ` Greg KH [this message]
2019-11-18 15:44 ` Laura Abbott
2019-11-18 15:58 ` Greg KH
2019-11-18 16:03 ` Pacho Ramos
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=20191118112837.GE156486@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=labbott@fedoraproject.org \
--cc=linux-usb@vger.kernel.org \
--cc=pachoramos@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).