summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid
diff options
context:
space:
mode:
authorGuixin Liu <kanie@linux.alibaba.com>2022-09-14 16:48:03 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2022-10-01 05:21:31 -0400
commit27b571cc454e5a5939b4940ed0bf20aaf37f5225 (patch)
tree16a41d59464f2fc4524e0a08a37a5023b2eda1b1 /drivers/scsi/megaraid
parentad40d51992392a2336af861f83c17c0b08ca64b6 (diff)
downloadlinux-27b571cc454e5a5939b4940ed0bf20aaf37f5225.tar.gz
linux-27b571cc454e5a5939b4940ed0bf20aaf37f5225.tar.bz2
linux-27b571cc454e5a5939b4940ed0bf20aaf37f5225.zip
scsi: megaraid_sas: Move megasas_dbg_lvl init to megasas_init()
The megasas_dbg_lvl is a driver level parameter. Do not initialize it in the probe path. Otherwise we will miss the debug print when binding a new device to the megaraid driver. Link: https://lore.kernel.org/r/1663145283-4872-6-git-send-email-kanie@linux.alibaba.com Acked-by: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index f5e8c7cd0dca..465274ba9f1b 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -7441,7 +7441,6 @@ static inline void megasas_init_ctrl_params(struct megasas_instance *instance)
(instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0071SKINNY))
instance->flag_ieee = 1;
- megasas_dbg_lvl = 0;
instance->flag = 0;
instance->unload = 1;
instance->last_time = 0;
@@ -9011,6 +9010,7 @@ static int __init megasas_init(void)
*/
pr_info("megasas: %s\n", MEGASAS_VERSION);
+ megasas_dbg_lvl = 0;
support_poll_for_event = 2;
support_device_change = 1;
support_nvme_encapsulation = true;