]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: pm8001: Rework shost initial values
authorJohn Garry <john.garry@huawei.com>
Fri, 10 Jun 2022 16:46:39 +0000 (00:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Jun 2022 01:45:08 +0000 (21:45 -0400)
commit57b69652adab5ad5cb9b425d246ca6a0cff1d1bc
treefd9a0a490add31b0da8d0d80e12fc02862bda3ae
parente31d5d3d1318c1331477caf7ac5946cc7031e595
scsi: pm8001: Rework shost initial values

Some values in pm8001_prep_sas_ha_init() are set the same as they would be
set in scsi_host_alloc(), or could be in the sht (which would be better),
or later just overwritten, so rework the following:

 - cmd_per_lun can be set in the sht

 - max_lun and max_channel are as scsi_host_alloc() (so no need to set)

 - can_queue is later overwritten (so don't set in
   pm8001_prep_sas_ha_init())

Link: https://lore.kernel.org/r/1654879602-33497-2-git-send-email-john.garry@huawei.com
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_init.c