From nobody Fri Nov 08 00:59:58 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xl0wG2nf5z5cxvl; Fri, 08 Nov 2024 00:59:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xl0wG27Lvz4VGh; Fri, 8 Nov 2024 00:59:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731027598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UYnxK7oRYhKsmPLSq7ffpoVrIvdKZCM95KerxZC4td4=; b=BwPh9p3vI4NjpMlz0036lMKQ6hiwebzTuNCZsyPGj2BR7/6oONYQ9bLPD5CY683XaMslbD OamSGAUoe+XlFu01YE2Dv74Wybe+V9uEcfA92/FPNfYIZrZO1IsaZJPOZ08XZOP2kNuDMd zfpDRmXZyh/xfkIMN0QUHY6tG570H9ci/Pqxj8sUPoliyDRXfKg1OAdKjmPOuCeohn0vzk zlit4pn9vsjLq8uJqpj1sCQHg/1tLVDzAMJrUNAuPbMqp+tqJRiHpIb7eE+v4DCnVMbIRz 5Qt1TgyllEMRGXsZK/uUt1/pRrju1/fs7uVSOK0hOzfCe0BPjURYHusy1wE7rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731027598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UYnxK7oRYhKsmPLSq7ffpoVrIvdKZCM95KerxZC4td4=; b=oCGPAvLairRPjqHQBcP5w9R///0AO9YrRThhcTQhUH3lB+cPR/gSZlqyAeHnMHFTBwPSGw rwRK6Q3kmkda1OjXvyqvuuKY0s3yPpPHt84SpuzNyvcdXKRcmJ6+jyNAU51WNrcogQ4fwO nDV5pawDg06iGY0YoHXgZSZF3uec33EFBW8/z10f0s7MgkcBERgySNBpH8gru6Mmaa7Pxs wWuHgFxrmk8QpIQSEDt5WiP22kqIiaGnXfB9YaJyjP8c5Ui5/AUDCfaZ6Yh+jxQ+8dmVpK qoDtYnUpRA/nCKtnMajlqE+FxyfAWajb7HjRgNh1geQzVeBvKavl8+PYHNMXQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731027598; a=rsa-sha256; cv=none; b=dH3Rjcofen/eH/DtJWanGK2CcOHyeg6RgX02jTAGCqCTgusr3jD5P9bkF/Mf77cu949qL7 UPHOhUXLD16nmkLPl8ud8kqgCgn7Uc4tZ2Poroc/n/5r/j46Rg0QXDIaHzS1t01aNT3hZb 40Vqndt95Rvh5lHyj87eFEXM6lAkzxXJHnf/g+uGV+XGfMlGRlDE3aDXPhR/lfxtOj/loF c0pwzvAEHDjNpvGCuOVaNWJg1DOZm2PngJ9OmCHmb3uJsKSkWidy6gbaS6nPseONugN383 oGACgbEPt64DvdEKXoZudZTAf7+4wAmyOKTgbjnXeyDv5l+INrOhn8sve+fvlg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xl0wG1lPgz17kp; Fri, 8 Nov 2024 00:59:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A80xwkC000505; Fri, 8 Nov 2024 00:59:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A80xwIx000502; Fri, 8 Nov 2024 00:59:58 GMT (envelope-from git) Date: Fri, 8 Nov 2024 00:59:58 GMT Message-Id: <202411080059.4A80xwIx000502@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: f11b6ce4a3bc - main - da: Add quirk for ADATA USB Drive List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2 commit f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2 Author: Warner Losh AuthorDate: 2024-11-08 00:11:15 +0000 Commit: Warner Losh 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