git: 18e42bdf1a7b - stable/14 - da: Add quirk for ADATA USB Drive
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Nov 2024 04:56:08 UTC
The branch stable/14 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=18e42bdf1a7b493d6305d104ebec68cb01ab0285
commit 18e42bdf1a7b493d6305d104ebec68cb01ab0285
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-11-08 00:11:15 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-13 04:55:04 +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
(cherry picked from commit f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2)
---
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 5b1cc7314984..efa903c2e57a 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[] =
{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