HomeFreeBSD

usb: Respect NO_INQUIRY quirk during device enumeration

Description

usb: Respect NO_INQUIRY quirk during device enumeration

Both usb_iface_is_cdrom and usb_msc_auto_quirk functions use SCSI INQUIRY
command to probe various properties of usb mass storage devices.
The problem here is that some very broken devices don't like this command.
Check if UQ_MSC_NO_INQUIRY quirk is set and skip cdrom and quirk
autodetection in that case.

Sponsored by: Stormshield
Obtained from: Semihalf
Reviewed by: hps, wma
Differential Revision: https://reviews.freebsd.org/D35075

(cherry picked from commit 3ee943868c74ce917820fe9ddbcfeab338704d90)

Details

Provenance
kdAuthored on Apr 26 2022, 12:07 PM
hselaskyCommitted on Apr 30 2023, 6:56 AM
Reviewer
wma
Differential Revision
D35075: usb: Respect NO_INQUIRY quirk during device enumeration
Parents
rGd9a8025f4849: uhid_snes: Remove USB_ST_TRANSFERRED handling for the status request.
Branches
Unknown
Tags
Unknown