diff options
Diffstat (limited to 'drivers/scsi/aacraid/linit.c')
-rw-r--r-- | drivers/scsi/aacraid/linit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index d67058f80816..6e4eafa4ecee 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
@@ -82,6 +82,8 @@ static LIST_HEAD(aac_devices); | |||
82 | static int aac_cfg_major = -1; | 82 | static int aac_cfg_major = -1; |
83 | char aac_driver_version[] = AAC_DRIVER_FULL_VERSION; | 83 | char aac_driver_version[] = AAC_DRIVER_FULL_VERSION; |
84 | 84 | ||
85 | extern int expose_physicals; | ||
86 | |||
85 | /* | 87 | /* |
86 | * Because of the way Linux names scsi devices, the order in this table has | 88 | * Because of the way Linux names scsi devices, the order in this table has |
87 | * become important. Check for on-board Raid first, add-in cards second. | 89 | * become important. Check for on-board Raid first, add-in cards second. |
@@ -394,6 +396,7 @@ static int aac_slave_configure(struct scsi_device *sdev) | |||
394 | sdev->skip_ms_page_3f = 1; | 396 | sdev->skip_ms_page_3f = 1; |
395 | } | 397 | } |
396 | if ((sdev->type == TYPE_DISK) && | 398 | if ((sdev->type == TYPE_DISK) && |
399 | !expose_physicals && | ||
397 | (sdev_channel(sdev) != CONTAINER_CHANNEL)) { | 400 | (sdev_channel(sdev) != CONTAINER_CHANNEL)) { |
398 | struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; | 401 | struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; |
399 | if (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2)) | 402 | if (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2)) |
@@ -928,7 +931,7 @@ static int __devinit aac_probe_one(struct pci_dev *pdev, | |||
928 | * all containers are on the virtual channel 0 (CONTAINER_CHANNEL) | 931 | * all containers are on the virtual channel 0 (CONTAINER_CHANNEL) |
929 | * physical channels are address by their actual physical number+1 | 932 | * physical channels are address by their actual physical number+1 |
930 | */ | 933 | */ |
931 | if (aac->nondasd_support == 1) | 934 | if ((aac->nondasd_support == 1) || expose_physicals) |
932 | shost->max_channel = aac->maximum_num_channels; | 935 | shost->max_channel = aac->maximum_num_channels; |
933 | else | 936 | else |
934 | shost->max_channel = 0; | 937 | shost->max_channel = 0; |