]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpi3mr: Fix duplicate device entries when scanning through sysfs
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Thu, 14 Oct 2021 05:54:25 +0000 (11:24 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 17 Oct 2021 02:16:37 +0000 (22:16 -0400)
commit3faf74af1d72af6f28f5fe68c1ac48dae741f0d9
tree32a0d7190749f77a56a1b474b6999bf5b19cbe5b
parent9850f8d7eef34a5aa048cd460a9daa8ac595e909
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/20211014055425.30719-1-sreekanth.reddy@broadcom.com
Fixes: 9054896a7371 ("scsi: mpi3mr: Base driver code")
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c