git: f11b6ce4a3bc - main - da: Add quirk for ADATA USB Drive
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Nov 2024 00:59:58 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2
commit f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-11-08 00:11:15 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-08 00:40:05 +0000
da: Add quirk for ADATA USB Drive
ADATA USB Drive lies about the RC16, so add a quirk to ignore it.
MFC After: 3 days
PR: 188999
Sponsored by: Netflix
---
sys/cam/scsi/scsi_da.c | 5 +++++
1 file changed, 5 insertions(+)
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
@@ -881,6 +881,11 @@ static struct da_quirk_entry da_quirk_table[] =
{T_DIRECT, SIP_MEDIA_REMOVABLE, "JetFlash", "Transcend*",
"*"}, /*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