aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-11-08 00:11:15 +0000
committerWarner Losh <imp@FreeBSD.org>2024-11-08 00:40:05 +0000
commitf11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2 (patch)
treeb58dff10120e33a5052b46d70aa0ea8429ab9c7f
parentd2434697bc9cc2d36da0f356cc5942b33df87896 (diff)
downloadsrc-f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2.tar.gz
src-f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2.zip
da: Add quirk for ADATA USB DriveHEADmain
ADATA USB Drive lies about the RC16, so add a quirk to ignore it. MFC After: 3 days PR: 188999 Sponsored by: Netflix
-rw-r--r--sys/cam/scsi/scsi_da.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 5e562122c5d5..e8e13613413a 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -882,6 +882,11 @@ static struct da_quirk_entry da_quirk_table[] =
"*"}, /*quirks*/ DA_Q_NO_RC16
},
{
+ /* ADATA USB sticks lie on RC16. */
+ {T_DIRECT, SIP_MEDIA_REMOVABLE, "ADATA", "USB Flash Drive*",
+ "*"}, /*quirks*/ DA_Q_NO_RC16
+ },
+ {
/*
* I-O Data USB Flash Disk
* PR: usb/211716