[Bug 263868] usb_msc_auto_quirk and usb memory card readers

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 27 Dec 2024 20:33:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263868

Brett <vbasiccd@msn.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vbasiccd@msn.com

--- Comment #19 from Brett <vbasiccd@msn.com> ---
FYI, I had the same issue with a Sandisk iXpand flash drive on 14.1-RELEASE-p6.
Below is the output in /var/log/messages:

usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device SanDisk
iXpand Flash Drive (0x0781:0xcffb)
usb_msc_auto_quirk: UQ_MSC_NO_SYNC_CACHE set for USB mass storage device
SanDisk iXpand Flash Drive (0x0781:0xcffb)
usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage device
SanDisk iXpand Flash Drive (0x0781:0xcffb)
usb_msc_auto_quirk: UQ_MSC_NO_TEST_UNIT_READY set for USB mass storage device
SanDisk iXpand Flash Drive (0x0781:0xcffb)
usb_msc_auto_quirk: UQ_MSC_NO_START_STOP set for USB mass storage device
SanDisk iXpand Flash Drive (0x0781:0xcffb)
ugen0.2: <SanDisk iXpand Flash Drive> at usbus0
umass0 on uhub0
umass0: <SanDisk iXpand Flash Drive, class 0/0, rev 3.00/1.00, addr 1> on
usbus0
umass0:  SCSI over Bulk-Only; quirks = 0xc105
umass0:2:0: Attached to scbus2
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00
00 
(probe0:umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed
(probe0:umass-sim0:0:0:0): Error 5, Unretryable error
(da0:umass-sim0:0:0:0): got CAM status 0x450
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device

I added the following line to /boot/loader.conf and then rebooted.

hw.usb.quirk.0="0x0781 0xcffb 0 0xffff UQ_MSC_NO_INQUIRY"

Now the drive mounts properly. Thanks for the tip!

ugen0.2: <SanDisk iXpand Flash Drive> at usbus0
umass0 on uhub1
umass0: <SanDisk iXpand Flash Drive, class 0/0, rev 3.00/1.00, addr 1> on
usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0400
umass0:2:0: Attached to scbus2
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <  > Removable Direct Access SCSI-2 device
da0: 400.000MB/s transfers
da0: 121941MB (249736704 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>

-- 
You are receiving this mail because:
You are on the CC list for the bug.