If a USB mass storage device doesn't respond properly

to the initial SCSI INQUIRY command, enable all quirks.
This fixes detection of some Transcend TS2GUFM devices.

MFC after:	1 week
Reported by:	Michael Dexter
This commit is contained in:
Hans Petter Selasky 2012-10-30 16:56:16 +00:00
parent 6626207e67
commit 7a75e881d7

View File

@ -664,8 +664,11 @@ usb_msc_auto_quirk(struct usb_device *udev, uint8_t iface_index)
if (sid_type == 0x00)
is_no_direct = 0;
break;
} else if (err != ERR_CSW_FAILED)
break; /* non retryable error */
} else if (err != ERR_CSW_FAILED) {
DPRINTF("Device is not responding "
"properly to SCSI INQUIRY command.\n");
goto error; /* non retryable error */
}
usb_pause_mtx(NULL, hz);
}