Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/usb_device.c
Show First 20 Lines • Show All 2,041 Lines • ▼ Show 20 Lines | if (config_index == 0) { | ||||
config_index++; | config_index++; | ||||
goto repeat_set_config; | goto repeat_set_config; | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
} | } | ||||
#if USB_HAVE_MSCTEST | #if USB_HAVE_MSCTEST | ||||
if (set_config_failed == 0 && config_index == 0 && | if (set_config_failed == 0 && config_index == 0 && | ||||
usb_test_quirk(&uaa, UQ_MSC_NO_START_STOP) == 0 && | |||||
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_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) { | ||||
/* | /* | ||||
* Try to figure out if there are any MSC quirks we | * Try to figure out if there are any MSC quirks we | ||||
* should apply automatically: | * should apply automatically: | ||||
*/ | */ | ||||
err = usb_msc_auto_quirk(udev, 0); | err = usb_msc_auto_quirk(udev, 0, &uaa); | ||||
if (err != 0) { | if (err != 0) { | ||||
set_config_failed = 1; | set_config_failed = 1; | ||||
goto repeat_set_config; | goto repeat_set_config; | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 1,028 Lines • Show Last 20 Lines |