MFC:
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:
parent
491b3507c0
commit
179ac5f43a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user