[SCSI] hpsa: get physical device handles for io accel mode 2 as well as mode 1
authorMike MIller <mikem@beardog.cce.hp.com>
Tue, 18 Feb 2014 19:56:20 +0000 (13:56 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:05 +0000 (10:19 -0700)
Signed-off-by: Mike MIller <michael.miller@canonical.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c

index 600f3121cf272f6f28d44fbf3fb29cefc6c49d48..42bb7d7fc8deeb941f0cf3605da81aaa6653f517 100644 (file)
@@ -2126,7 +2126,8 @@ static int hpsa_gather_lun_info(struct ctlr_info *h,
        *physical_mode = 0;
 
        /* For I/O accelerator mode we need to read physical device handles */
-       if (h->transMethod & CFGTBL_Trans_io_accel1) {
+       if (h->transMethod & CFGTBL_Trans_io_accel1 ||
+               h->transMethod & CFGTBL_Trans_io_accel2) {
                *physical_mode = HPSA_REPORT_PHYS_EXTENDED;
                physical_entry_size = 24;
        }