Skip to content

Commit 27b571c

Browse files
guixinliu1995martinkpetersen
authored andcommitted
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/[email protected] Acked-by: Sumit Saxena <[email protected]> Signed-off-by: Guixin Liu <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent ad40d51 commit 27b571c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7441,7 +7441,6 @@ static inline void megasas_init_ctrl_params(struct megasas_instance *instance)
74417441
(instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0071SKINNY))
74427442
instance->flag_ieee = 1;
74437443

7444-
megasas_dbg_lvl = 0;
74457444
instance->flag = 0;
74467445
instance->unload = 1;
74477446
instance->last_time = 0;
@@ -9011,6 +9010,7 @@ static int __init megasas_init(void)
90119010
*/
90129011
pr_info("megasas: %s\n", MEGASAS_VERSION);
90139012

9013+
megasas_dbg_lvl = 0;
90149014
support_poll_for_event = 2;
90159015
support_device_change = 1;
90169016
support_nvme_encapsulation = true;

0 commit comments

Comments
 (0)