Enable NO_GETMAXLUN quirk.

PR:		usb/90670
Submitted by:	Wojciech A. Koszek <dunstan@freebsd.czest.pl>
Approved by:	iedowse
MFC after:	1 week
This commit is contained in:
Florent Thoumie 2006-01-09 01:33:53 +00:00
parent c0263970ff
commit 465ad22910

View File

@ -1101,7 +1101,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;