Re: add NO_REPORT_LUNS quirk for at least a few Seagate external drives to fix smartctl with uas

Oliver Neukum
2024-06-11T08:21:07Z

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

On 10.06.24 21:25, Alban Browaeys wrote:
> I found that for "smartctl" to work on my two Seagate Expansion
> external USB3 I had to add the "j" usb-storage quirks ie
> "US_FL_NO_REPORT_LUNS".
> (They are years apart).

Hi,

does the attached patch do the job?

Regards
Oliver

[-- Attachment #2: 0001-usb-uas-set-two-more-quirks-for-Seagate-drives.patch --]
[-- Type: text/x-patch, Size: 1281 bytes --]

From f7f2fa579d23a45d4011b79155bdcf1d179f1044 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oneukum@suse.com>
Date: Tue, 11 Jun 2024 10:14:47 +0200
Subject: [PATCH] usb: uas: set two more quirks for Seagate drives

These drives need US_FL_NO_REPORT_LUNS

Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
drivers/usb/storage/unusual_uas.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)

diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusual_uas.h
index 1f8c9b16a0fb..12c2fda6905b 100644
--- a/drivers/usb/storage/unusual_uas.h
+++ b/drivers/usb/storage/unusual_uas.h
@@ -76,6 +76,20 @@ UNUSUAL_DEV(0x0b05, 0x1932, 0x0000, 0x9999,
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
US_FL_IGNORE_UAS),

+/* Reported-by: Alban Browaeys <alban.browaeys@gmail.com> */
+UNUSUAL_DEV(0x0bc2, 0x2037, 0x0000, 0x9999,
+ "Seagate",
+ "RSS LLC Expansion HDD",
+ USB_SC_DEVICE, USB_PR_DEVICE, NULL,
+ US_FL_NO_REPORT_LUNS),
+
+/* Reported-by: Alban Browaeys <alban.browaeys@gmail.com> */
+UNUSUAL_DEV(0x0bc2, 0x231a, 0x0000, 0x9999,
+ "Seagate",
+ "RSS LLC Expansion Portable",
+ USB_SC_DEVICE, USB_PR_DEVICE, NULL,
+ US_FL_NO_REPORT_LUNS),
+
/* Reported-by: David Webb <djw@noc.ac.uk> */
UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999,
"Seagate",
--
2.45.1