Enable NO_GETMAXLUN quirk.

      src/sys/dev/usb/umass.c: rev 1.127 -> 1.128

PR:		usb/81073
Submitted by:	James E. Flemer <jflemer@alum.rpi.edu>
This commit is contained in:
flz 2006-01-16 22:34:20 +00:00
parent 491b3507c0
commit 179ac5f43a

View File

@ -1097,7 +1097,8 @@ USB_ATTACH(umass)
/* Get the maximum LUN supported by the device.
*/
if ((sc->proto & UMASS_PROTO_WIRE) == UMASS_PROTO_BBB)
if (((sc->proto & UMASS_PROTO_WIRE) == UMASS_PROTO_BBB) &&
!(sc->quirks & NO_GETMAXLUN))
sc->maxlun = umass_bbb_get_max_lun(sc);
else
sc->maxlun = 0;