Skip to content

Commit a56e574

Browse files
Raghava Aditya Renukuntamartinkpetersen
authored andcommitted
scsi: aacraid: Fixed expander hotplug for SMART family
Current driver Hotplug processing code skips over Enclosure channel, therefore any addition/removal of expander enclosure is not processed. Additionally device addition code relies on older device type, which prevents the hotplug of adapter expanders. Fixed by removing code that skips over Enclosure channels and using the latest device type for addition or removal or enclosure expanders. Fixes: 6223a39 (scsi: aacraid: Added support for hotplug) Signed-off-by: Raghava Aditya Renukunta <[email protected]> Reviewed-by: Dave Carroll <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 1d55abc commit a56e574

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/scsi/aacraid/commsup.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,9 +1908,6 @@ static void aac_resolve_luns(struct aac_dev *dev)
19081908
for (bus = 0; bus < AAC_MAX_BUSES; bus++) {
19091909
for (target = 0; target < AAC_MAX_TARGETS; target++) {
19101910

1911-
if (aac_phys_to_logical(bus) == ENCLOSURE_CHANNEL)
1912-
continue;
1913-
19141911
if (bus == CONTAINER_CHANNEL)
19151912
channel = CONTAINER_CHANNEL;
19161913
else
@@ -1922,7 +1919,7 @@ static void aac_resolve_luns(struct aac_dev *dev)
19221919
sdev = scsi_device_lookup(dev->scsi_host_ptr, channel,
19231920
target, 0);
19241921

1925-
if (!sdev && devtype)
1922+
if (!sdev && new_devtype)
19261923
scsi_add_device(dev->scsi_host_ptr, channel,
19271924
target, 0);
19281925
else if (sdev && new_devtype != devtype)

0 commit comments

Comments
 (0)