
From: Simon Glass <sjg@chromium.org> Recent versions of SCSI handle the LUN outside the command region. Check for this and obey. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/scsi/scsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 89c94f52d1d..b32eb1be2b3 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -487,6 +487,9 @@ static int scsi_detect_dev(struct udevice *dev, int target, int lun, desc->removable = true; if (resp->eflags & EFLAGS_TPGS_MASK) desc->no_lun = true; + /* check for SPC-3 or greater */ + if (resp->version > 4) + desc->no_lun = true; /* get info for this device */ scsi_ident_cpy(desc->vendor, resp->vendor, sizeof(resp->vendor)); -- 2.43.0