Skip to content

Commit 97e6ea6

Browse files
sreekanthbrcmmartinkpetersen
authored andcommitted
scsi: mpi3mr: Fix duplicate device entries when scanning through sysfs
When scanning devices through the 'scan' attribute in sysfs, the user will observe duplicate device entries in lsscsi command output. Set the shost's max_channel to zero to avoid this. Link: https://lore.kernel.org/r/[email protected] Fixes: 824a156 ("scsi: mpi3mr: Base driver code") Signed-off-by: Sreekanth Reddy <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent f2b8504 commit 97e6ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mpi3mr/mpi3mr_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3736,7 +3736,7 @@ mpi3mr_probe(struct pci_dev *pdev, const struct pci_device_id *id)
37363736
shost->max_lun = -1;
37373737
shost->unique_id = mrioc->id;
37383738

3739-
shost->max_channel = 1;
3739+
shost->max_channel = 0;
37403740
shost->max_id = 0xFFFFFFFF;
37413741

37423742
if (prot_mask >= 0)

0 commit comments

Comments
 (0)