scsi: pm80xx: Squashed logging cleanup changes
The default logging doesn't include the device name, so it's difficult to determine which controller is being logged about in error scenarios. The logging level was only settable via sysfs, which made it inconvenient for actual debugging. This changes the default to only cover error handling. Link: https://lore.kernel.org/r/20191114100910.6153-6-deepak.ukey@microchip.com Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com> Signed-off-by: peter chang <dpf@google.com> Signed-off-by: Deepak Ukey <deepak.ukey@microchip.com> Signed-off-by: Viswas G <Viswas.G@microchip.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
4daf1ef3c6
commit
7370672dc3
@@ -42,6 +42,10 @@
|
||||
#include "pm8001_sas.h"
|
||||
#include "pm8001_chips.h"
|
||||
|
||||
static ulong logging_level = PM8001_FAIL_LOGGING | PM8001_IOERR_LOGGING;
|
||||
module_param(logging_level, ulong, 0644);
|
||||
MODULE_PARM_DESC(logging_level, " bits for enabling logging info.");
|
||||
|
||||
static struct scsi_transport_template *pm8001_stt;
|
||||
|
||||
/**
|
||||
@@ -466,7 +470,7 @@ static struct pm8001_hba_info *pm8001_pci_alloc(struct pci_dev *pdev,
|
||||
pm8001_ha->sas = sha;
|
||||
pm8001_ha->shost = shost;
|
||||
pm8001_ha->id = pm8001_id++;
|
||||
pm8001_ha->logging_level = 0x01;
|
||||
pm8001_ha->logging_level = logging_level;
|
||||
sprintf(pm8001_ha->name, "%s%d", DRV_NAME, pm8001_ha->id);
|
||||
/* IOMB size is 128 for 8088/89 controllers */
|
||||
if (pm8001_ha->chip_id != chip_8001)
|
||||
|
Reference in New Issue
Block a user