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
Sponsored by: NVIDIA Networking

(cherry picked from commit 7520b88860d7a79432e12ffcc47056844518bb62)

Details

Provenance
hselaskyAuthored on Feb 21 2022, 8:24 AM
Differential Revision
D30919: Automagically apply quirks on USB storage devices
Parents
rG304a69596b36: mlx5ib: Add support for NDR link speed.
Branches
Unknown
Tags
Unknown