HomeFreeBSD

usb(4): Automagically apply all quirks for USB mass storage devices.

Description

usb(4): Automagically apply all quirks for USB mass storage devices.

Currently there are five quirks the USB stack tries to automagically detect:

  • UQ_MSC_NO_PREVENT_ALLOW
  • UQ_MSC_NO_SYNC_CACHE
  • UQ_MSC_NO_TEST_UNIT_READY
  • UQ_MSC_NO_GETMAXLUN
  • UQ_MSC_NO_START_STOP

If any of the quirks above are set, no further quirks will be probed.

If any of the USB mass storage tests fail, the USB device is
re-enumerated as a last resort to clear any error states from the
device. Then the USB stack will try to probe and attach the umass<N>
device passing the detected quirks.

While at it give more details in dmesg about what is going on.

Tested by: several
Submitted by: Idwer Vollering <vidwer_fbsdbugs@gmail.com>
Differential Revision: https://reviews.freebsd.org/D30919
MFC after: 1 week
Sponsored by: NVIDIA Networking

Details

Provenance
hselaskyAuthored on Feb 21 2022, 8:24 AM
Differential Revision
D30919: Automagically apply quirks on USB storage devices
Parents
rG68445e349bf4: Fix mdoc macro usage and style in section 4 manpages.
Branches
Unknown
Tags
Unknown