From nobody Wed Oct 8 02:02:18 2025 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 2A2932D77FF; Thu, 3 Jul 2025 09:30:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751535007; cv=none; b=mke3AFYbr+jh1UBYPBUSX92J8OcAUm4/MF3PWMrfUPvS6NP1+r7cgNmE3qeYW1eGTOrdjWUJAdAbpuGLI/mzIkaHKEqF3a+FCpXuNIOJ0XOuXyKgG2pRUGtpjGvNv6hG1suPTzhhRf5pqNzK6M+OI2x9nRrgDKa2xVJVcyzUs+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751535007; c=relaxed/simple; bh=ammVNu30WDVN5jEEqGssYZKkOvQnpMM5FyGYLZGNyKc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gpRwyFjhjCKJ8t+oKPwKocxC1+tOdWLj/ARRyiH1B24BQy+GL9VC9Oz4dNNe+hn++gh9cIdP1VJFrQwRkQA1YftjAfZoAayifF99Xnrxxj9/c+qxtEa+ya8pPdZqhL0n/jp94teNnkVfsfQ5L37033z3rrvY/T+/vwjizzSXaVc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 4857af8057f011f0b29709d653e92f7d-20250703 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.45,REQID:fb65c855-279a-4f21-9949-176d3165a549,IP:0,U RL:0,TC:0,Content:0,EDM:25,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:25 X-CID-META: VersionHash:6493067,CLOUDID:bc53333ac3cd15831769d67461648726,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0|50,EDM:5,IP:nil,URL :0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SP R:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 4857af8057f011f0b29709d653e92f7d-20250703 X-User: dengjie03@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 280611619; Thu, 03 Jul 2025 17:29:56 +0800 From: Jie Deng To: stern@rowland.harvard.edu Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org, Jie Deng Subject: [PATCH] usb: storage: Ignore UAS driver for SanDisk Extreme Pro 55AF storage device Date: Thu, 3 Jul 2025 17:29:46 +0800 Message-Id: <20250703092946.939936-1-dengjie03@kylinos.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The SanDisk Extreme Pro 55AF storage device(0781:55af) has poor compatibili= ty with UAS drivers. The logs: Jun 23 18:21:48 FD-0528-pc kernel: [ 1.359859][ 0] [ T163] usb 2-1: new= SuperSpeed Gen 1 USB device number 2 using xhci_hcd Jun 23 18:21:48 FD-0528-pc kernel: [ 1.385708][ 0] [ T163] usb 2-1: New= USB device found, idVendor=3D0781, idProduct=3D55af, bcdDevice=3D10.85 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.385709][ 0] [ T163] usb 2-1: New= USB device strings: Mfr=3D2, Product=3D3, SerialNumber=3D1 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.385710][ 0] [ T163] usb 2-1: Pro= duct: Extreme Pro 55AF Jun 23 18:21:48 FD-0528-pc kernel: [ 1.385711][ 0] [ T163] usb 2-1: Man= ufacturer: SanDisk Jun 23 18:21:48 FD-0528-pc kernel: [ 1.385711][ 0] [ T163] usb 2-1: Ser= ialNumber: 323234323935343030343636 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.927603][ 0] [ T306] usbcore: reg= istered new interface driver usb-storage Jun 23 18:21:48 FD-0528-pc kernel: [ 1.940511][ 0] [ T306] scsi host3: = uas Jun 23 18:21:48 FD-0528-pc kernel: [ 1.940584][ 0] [ T306] usbcore: reg= istered new interface driver uas Jun 23 18:21:48 FD-0528-pc kernel: [ 1.940843][ 0] [ T188] scsi 3:0:0:0= : Direct-Access SanDisk Extreme Pro 55AF 1085 PQ: 0 ANSI: 6 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.941363][ 0] [ T188] scsi 3:0:0:1= : Enclosure SanDisk SES Device 1085 PQ: 0 ANSI: 6 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.941697][ 0] [ T188] sd 3:0:0:0: = Attached scsi generic sg0 type 0 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.941783][ 0] [ T188] scsi 3:0:0:1= : Attached scsi generic sg1 type 13 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.942296][ 0] [ T189] sd 3:0:0:0: = [sda] 1953459617 512-byte logical blocks: (1.00 TB/931 GiB) Jun 23 18:21:48 FD-0528-pc kernel: [ 1.942373][ 0] [ T189] sd 3:0:0:0: = [sda] Write Protect is off Jun 23 18:21:48 FD-0528-pc kernel: [ 1.942374][ 0] [ T189] sd 3:0:0:0: = [sda] Mode Sense: 37 00 10 00 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.942534][ 0] [ T189] sd 3:0:0:0: = [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA Jun 23 18:21:48 FD-0528-pc kernel: [ 1.943586][ 0] [ T189] sd 3:0:0:0: = [sda] Optimal transfer size 2097152 bytes Jun 23 18:21:48 FD-0528-pc kernel: [ 1.976797][ 0] [ T189] sda: sda1 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.977898][ 0] [ T189] sd 3:0:0:0: = [sda] Attached SCSI disk Jun 23 18:21:48 FD-0528-pc kernel: [ 1.980406][ 0] [ T267] scsi 3:0:0:1= : Failed to get diagnostic page 0x1 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.980408][ 0] [ T267] scsi 3:0:0:1= : Failed to bind enclosure -19 Jun 23 18:21:48 FD-0528-pc kernel: [ 1.980414][ 0] [ T267] ses 3:0:0:1:= Attached Enclosure device Jun 23 18:21:48 FD-0528-pc kernel: [ 1.981068][ 0] [ C0] sd 3:0:0:0: = [sda] tag#10 data cmplt err -75 uas-tag 1 inflight: CMD Jun 23 18:21:48 FD-0528-pc kernel: [ 1.981071][ 0] [ C0] sd 3:0:0:0: = [sda] tag#10 CDB: Read(10) 28 00 74 6f 6d 00 00 00 08 00 Jun 23 18:21:48 FD-0528-pc kernel: [ 33.819186][ 0] [ T188] sd 3:0:0:0: = [sda] tag#10 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD Jun 23 18:21:48 FD-0528-pc kernel: [ 33.819188][ 0] [ T188] sd 3:0:0:0: = [sda] tag#10 CDB: Read(10) 28 00 74 6f 6d 00 00 00 08 00 Jun 23 18:21:48 FD-0528-pc kernel: [ 33.843186][ 0] [ T309] scsi host3: = uas_eh_device_reset_handler start Device decriptor is below: Bus 002 Device 003: ID 0781:55af SanDisk Corp. Extreme Pro 55AF Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 3.20 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 9 idVendor 0x0781 SanDisk Corp. idProduct 0x55af bcdDevice 10.85 iManufacturer 2 SanDisk iProduct 3 Extreme Pro 55AF iSerial 1 323234323935343030343636 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0079 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 896mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 15 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 15 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 1 bNumEndpoints 4 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 98 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 15 MaxStreams 32 Data-in pipe (0x03) Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 15 MaxStreams 32 Data-out pipe (0x04) Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 15 MaxStreams 32 Status pipe (0x02) Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x04 EP 4 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 0 bMaxBurst 0 Command pipe (0x01) So ignore UAS driver for this device. Signed-off-by: Jie Deng --- drivers/usb/storage/unusual_uas.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusua= l_uas.h index 1477e31d7763..9f093a6af7f9 100644 --- a/drivers/usb/storage/unusual_uas.h +++ b/drivers/usb/storage/unusual_uas.h @@ -199,3 +199,10 @@ UNUSUAL_DEV(0x4971, 0x8024, 0x0000, 0x9999, "External HDD", USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_ALWAYS_SYNC), + +/* Reported-by: Jie Deng */ +UNUSUAL_DEV(0x0781, 0x55af, 0x0000, 0x9999, + "SanDisk", + "Extreme Pro 55AF", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_IGNORE_UAS), --=20 2.25.1