Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp495559rdh; Wed, 14 Feb 2024 03:18:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZ/al9yMcwjIXbITasBeow6Sq8cEeVqMXPgmEJu+VfbxgTEsYqp4TnzjtbGjP/MCc32f7IiduAkbWiVrxht4Sq7TVFBI7biwjX7d2W6w== X-Google-Smtp-Source: AGHT+IGYjZ8ap4TfrlLG/NyuRS1DXol8DH2rU3/OwS66F7dQlsYyzmZVLkvRo49eeNL0O7lNQceK X-Received: by 2002:a25:4602:0:b0:dc7:4a05:ca33 with SMTP id t2-20020a254602000000b00dc74a05ca33mr1804813yba.64.1707909492539; Wed, 14 Feb 2024 03:18:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707909492; cv=pass; d=google.com; s=arc-20160816; b=n3/Lt93ouM/1ax4Xfpi0MISclkcP8l1StskRE3D8UG2Prk+RChH/uRKIejRnJtJG7o l8hJXi+nDDxvciIkJfVXtsuCLccjRnXQRkLJy0JqBQMEhyWVCF1re/bMnVRemtdOTu5l 8sZ6X/erefrWsjfGSJOo8rgiKHloZyn8qSmtTDIaL7aWl9G2ACLvX/yb/FjtSkxnV1pG X9KF9CDrdBC6ZJrZGJGXZURb9i547/z2RoLcxtvj0ngqoZGD/s2Z+1NIVOvu/Mjdzmk6 uQdqOMqTHheHoaYJwywuv6YNKKAWw+ds/aHI1vaQRufe7M2rPo6ZjafiIO5C3spaEOT9 DxGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=Jva86+YXCMqxo0LT3C/0gbD8Dx0/YyWNE6GHj6ltS1c=; fh=mFBF8kUop2DvKymb7JhjzuQ8cqo/QMPFgi6UsCsfofk=; b=tGnfHEBaLaxPsDQWnFNWHGgXZ+mPgabk+isEc481SFZKfFNf3cmIub1POUJdFANvU2 5NHsNh3NzXSQVAo29cbKfvcx0UoKibtQJ7iJMDmmNJPTbKG95cOHzIySav91d5GBuMoK T7z+E9J4ESV8mBWGJS/8LRA+siMwr+c7dqgQkjw9aPT5SQUi2w6XO0H3OdSZkBWvwoba /OgGDwW5PTZwgINxxYHCZ6A93pcCdZq77WrvfaT1TUsocbqmc+Tcv7UHqWfmIBlGCoIO 1GF7sQOINMs2H/KDEKW2+M3m4uwmpFUTE3J9R6aNoVZ9QOXzewynfrrnf5RSsPdBMVro 0xXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HUODt3XT; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-65114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCUJuqDBvJkWpkqHwa+c5nj/8NXHqxwQSZONT5kCVx5Y9zZT2RKEmBinhhvcCR0iI/vkJ2H1mfKuKemIbTSPXo8s+5z8f8m2G6U0pwFT0A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b2-20020a05620a118200b007872aaa2afbsi1190899qkk.598.2024.02.14.03.18.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:18:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HUODt3XT; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-65114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C53A1C214A8 for ; Wed, 14 Feb 2024 11:18:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 722A119475; Wed, 14 Feb 2024 11:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="HUODt3XT" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8C591BC23; Wed, 14 Feb 2024 11:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707909483; cv=none; b=YEhMlHiR7QZ1cTl3ykYCzLXh4oOs75aHDBV1xojM2yPbuFW+X+tI4IV5Uz5WfELlnvDS7Y5APequxKI6dBMLJBfMJjxw+49pVI/8ddexrSCEomMmxjQCs+VUz6tR9eHhD8TakRC0LJAODXIftZQYBl4h2nruF1UveWKXVY4H8ng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707909483; c=relaxed/simple; bh=ZXYInM9DzYBXRy307ukp5GNDcgD4Crt155eACGYgiHg=; h=From:To:Cc:Subject:Date:Message-Id; b=nrWp9WfJYUkTESuGauZj35q4N7vvxxy4z0RIfEfCUdQymzEC0AnUzxNWV9l42SoZat3D3qeex/Ireyk+lH6iXm3BH6ORk7g9coqzR52sN4yy8FlQpWGyVlqijM0QKeYzPFZ+sROrVkOIsi5n3xEcjukkG2yxu8Bbg+Q/SrXivYI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=HUODt3XT; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41E9uCWb026014; Wed, 14 Feb 2024 11:17:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id; s=qcppdkim1; bh=Jva86+YXCMqx o0LT3C/0gbD8Dx0/YyWNE6GHj6ltS1c=; b=HUODt3XTxERqmmu9yz9sfr5x51A6 b/OBazA68wn4oZVLqV1yDBxjyRAreRbBjn/y/aDeVh8gqk6WuGShZYJdPHoEDM/c dwM8iHmNpnt7YYGJNffVKJurIKvSUStKl+fXbK2WSgK2CBL1jD5Sf+6KLrP33EgQ RyBD/jbX8r0q/PcqaYqE7PmVo1G91gxCsUu11LIaftrDPcbKzRsrLy+zBi9K1aJP tMJZI8/a81uCPKDaZYBWSxmRvMkxc5OWfi3EHyIy5y+R/ZLpJd0VVQ8semMvoQJj UnizjtncSJBd6zHl8ykDQ44DbvE7hGSTO24d/a2ao8KXhvXKIve2LPEESw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w8jrj905u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Feb 2024 11:17:48 +0000 (GMT) Received: from pps.filterd (NALASPPMTA05.qualcomm.com [127.0.0.1]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 41EBDjLS016521; Wed, 14 Feb 2024 11:17:47 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA05.qualcomm.com (PPS) with ESMTP id 3w88r6f091-1; Wed, 14 Feb 2024 11:17:47 +0000 Received: from NALASPPMTA05.qualcomm.com (NALASPPMTA05.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 41EBHl7v023397; Wed, 14 Feb 2024 11:17:47 GMT Received: from hu-devc-lv-u18-c.qualcomm.com (hu-selvaras-lv.qualcomm.com [10.47.205.157]) by NALASPPMTA05.qualcomm.com (PPS) with ESMTP id 41EBHk3M023395; Wed, 14 Feb 2024 11:17:47 +0000 Received: by hu-devc-lv-u18-c.qualcomm.com (Postfix, from userid 4178377) id D2401600C33; Wed, 14 Feb 2024 03:17:46 -0800 (PST) From: Selvarasu Ganesan To: tern@rowland.harvard.edu, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: quic_ppratap@quicinc.com, quic_wcheng@quicinc.com, quic_jackp@quicinc.com, Selvarasu Ganesan Subject: [PATCH] usb-storage: Add US_FL_FIX_INQUIRY quirk for Intenso Twist Line USB 3.2 Date: Wed, 14 Feb 2024 03:17:21 -0800 Message-Id: <20240214111721.18346-1-quic_selvaras@quicinc.com> X-Mailer: git-send-email 2.17.1 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: E3bxnyCKtXIo7-h0S4A5DagDOAP9Q-VD X-Proofpoint-ORIG-GUID: E3bxnyCKtXIo7-h0S4A5DagDOAP9Q-VD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-14_04,2024-02-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 impostorscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=553 mlxscore=0 spamscore=0 phishscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402140088 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The Intenso Twist Line USB 3.2 flash drive fails to respond to the INQUIRY data stage request for a 36 bulk in request from the host. This commit adds the US_FL_FIX_INQUIRY flag to fake the INQUIRY command for this device, preventing a storage enumeration failure. USBMON log: ffffff8a3ee06a00 3192811972 S Ci:2:009:0 s c0 33 0000 0000 0002 2 < ffffff8a3ee06a00 3192862051 C Ci:2:009:0 -2 0 ffffff8a3ee06a00 3192862185 S Ci:2:009:0 s c0 33 0000 0000 0002 2 < ffffff8a3ee06a00 3192912299 C Ci:2:009:0 -2 0 ffffff8a3ee06e00 3193040068 S Ci:2:003:0 s c1 04 0930 bf80 0004 4 < ffffff8a3ee06e00 3193040214 C Ci:2:003:0 0 4 = 880b0700 ffffff8a3ee06e00 3193040279 S Ci:2:002:0 s a3 00 0000 0003 0004 4 < ffffff8a3ee06e00 3193040427 C Ci:2:002:0 0 4 = 00010000 ffffff8a3ee06e00 3193040470 S Ci:2:002:0 s a3 00 0000 0004 0004 4 < ffffff8a3ee06e00 3193040672 C Ci:2:002:0 0 4 = 03050000 ffffff892b309500 3193824092 S Ci:2:009:0 s a1 fe 0000 0000 0001 1 < ffffff892b309500 3193824715 C Ci:2:009:0 0 1 = 00 ffffff892b309500 3193825060 S Bo:2:009:2 -115 31 = 55534243 01000000 24000000 80000612 00000024 00000000 00000000 000000 ffffff892b309500 3193825150 C Bo:2:009:2 0 31 > ffffff8b8419d400 3193825737 S Bi:2:009:1 -115 36 < ffffff8a3ee06400 3194040175 S Ci:2:003:0 s c1 04 0930 bf80 0004 4 < ffffff8a3ee06400 3194040372 C Ci:2:003:0 0 4 = 880b0700 ffffff89bee5b100 3194040591 S Ci:2:002:0 s a3 00 0000 0003 0004 4 < ffffff89bee5b100 3194040681 C Ci:2:002:0 0 4 = 00010000 ffffff89bee5b100 3194040999 S Ci:2:002:0 s a3 00 0000 0004 0004 4 < ffffff89bee5b100 3194041083 C Ci:2:002:0 0 4 = 03050000 ffffff8a3ee06a00 3195040349 S Ci:2:003:0 s c1 04 0930 bf80 0004 4 < Signed-off-by: Selvarasu Ganesan --- drivers/usb/storage/unusual_devs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index fd68204374f2..7285287ca379 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -784,6 +784,13 @@ UNUSUAL_DEV( 0x058f, 0x6387, 0x0141, 0x0141, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_MAX_SECTORS_64 ), +/* Selvarasu Ganesan */ +UNUSUAL_DEV( 0x058f, 0x6387, 0x0002, 0x0002, + "Intenso", + "Flash drive", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_FIX_INQUIRY), + /* Fabrizio Fellini */ UNUSUAL_DEV( 0x0595, 0x4343, 0x0000, 0x2210, "Fujifilm", -- 2.17.1