Page MenuHomeFreeBSD

usb: Respect NO_INQUIRY quirk during device enumeration

Authored by kd on Apr 27 2022, 12:57 PM.



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.

Diff Detail

rG FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

kd requested review of this revision.Apr 27 2022, 12:57 PM
kd created this revision.
This revision is now accepted and ready to land.Apr 27 2022, 1:02 PM
This revision was automatically updated to reflect the committed changes.