Page MenuHomeFreeBSD

D35075.diff
No OneTemporary

D35075.diff

diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c
--- a/sys/dev/usb/usb_device.c
+++ b/sys/dev/usb/usb_device.c
@@ -2031,7 +2031,8 @@
goto repeat_set_config;
}
#if USB_HAVE_MSCTEST
- if (config_index == 0) {
+ if (config_index == 0 &&
+ usb_test_quirk(&uaa, UQ_MSC_NO_INQUIRY) == 0) {
/*
* Try to figure out if we have an
* auto-install disk there:
@@ -2051,7 +2052,8 @@
usb_test_quirk(&uaa, UQ_MSC_NO_PREVENT_ALLOW) == 0 &&
usb_test_quirk(&uaa, UQ_MSC_NO_SYNC_CACHE) == 0 &&
usb_test_quirk(&uaa, UQ_MSC_NO_TEST_UNIT_READY) == 0 &&
- usb_test_quirk(&uaa, UQ_MSC_NO_GETMAXLUN) == 0) {
+ usb_test_quirk(&uaa, UQ_MSC_NO_GETMAXLUN) == 0 &&
+ usb_test_quirk(&uaa, UQ_MSC_NO_INQUIRY) == 0) {
/*
* Try to figure out if there are any MSC quirks we
* should apply automatically:

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 6:28 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14671748
Default Alt Text
D35075.diff (856 B)

Event Timeline