scsi: pm80xx: Enable init logging
authorAkshat Jain <akshatzen@google.com>
Tue, 18 Apr 2023 19:00:57 +0000 (19:00 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 8 May 2023 11:15:38 +0000 (07:15 -0400)
Enable init logging to debug drive discovery issues.

Signed-off-by: Akshat Jain <akshatzen@google.com>
Signed-off-by: Pranav Prasad <pranavpp@google.com>
Link: https://lore.kernel.org/r/20230418190101.696345-3-pranavpp@google.com
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_init.c
drivers/scsi/pm8001/pm80xx_hwi.c

index 90b2428986a64370129178ab3e43ecb500315e8b..c23250aab4f924d70861af91ed28f4f8a079f499 100644 (file)
@@ -44,7 +44,7 @@
 #include "pm80xx_hwi.h"
 
 static ulong logging_level = PM8001_FAIL_LOGGING | PM8001_IOERR_LOGGING |
-                                                        PM8001_EVENT_LOGGING;
+                               PM8001_EVENT_LOGGING | PM8001_INIT_LOGGING;
 module_param(logging_level, ulong, 0644);
 MODULE_PARM_DESC(logging_level, " bits for enabling logging info.");
 
index ce6a442d2418f48475bc5e82ba68a38654bbcc7d..61c1bf3d98a0e049f7a75dae4bb2a6877da16d08 100644 (file)
@@ -4837,7 +4837,7 @@ static void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha,
        payload.tag = cpu_to_le32(tag);
        payload.ppc_phyid =
                cpu_to_le32(((operation & 0xF) << 8) | (phyid  & 0xFF));
-       pm8001_dbg(pm8001_ha, INIT,
+       pm8001_dbg(pm8001_ha, DISC,
                   " phy profile command for phy %x ,length is %d\n",
                   le32_to_cpu(payload.ppc_phyid), length);
        for (i = length; i < (length + PHY_DWORD_LENGTH - 1); i++) {