OSDN Git Service

scsi: lpfc: Move MI module parameter check to handle dynamic disable
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Apr 2022 22:19:55 +0000 (15:19 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Apr 2022 02:48:45 +0000 (22:48 -0400)
commit39a1a86b9da22738f45460b50938515de8b9e48e
tree66e0b4a52ed86b9a1b6e031e2f658cb023f39cc5
parentd531d9874da85e36fc99ce75175ed47c9c360c20
scsi: lpfc: Move MI module parameter check to handle dynamic disable

lpfc_refresh_params() can be called for an async event handler. This could
potentially override the value initialized by lpfc_cmf_setup().

Move module parameter check to lpfc_refresh_params().

Link: https://lore.kernel.org/r/20220412222008.126521-14-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli.c