mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-02 20:29:20 +00:00
scsi: hpsa: do not get enclosure info for external devices
external shelves do not support BMICs. Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Reviewed-by: Scott Teel <scott.teel@microsemi.com> Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
046b263f75
commit
5ac517b8a2
1 changed files with 5 additions and 0 deletions
|
@ -3353,6 +3353,11 @@ static void hpsa_get_enclosure_info(struct ctlr_info *h,
|
|||
|
||||
bmic_device_index = GET_BMIC_DRIVE_NUMBER(&rle->lunid[0]);
|
||||
|
||||
if (encl_dev->target == -1 || encl_dev->lun == -1) {
|
||||
rc = IO_OK;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (bmic_device_index == 0xFF00 || MASKED_DEVICE(&rle->lunid[0])) {
|
||||
rc = IO_OK;
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue