summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_dbg.h
diff options
context:
space:
mode:
authorArun Easi <aeasi@marvell.com>2020-08-06 04:10:09 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2020-08-17 22:40:13 -0400
commit49030003a38a5e3688781e2ccf9550dcebf61282 (patch)
tree144a1ec8e766fe3f311aaa7d91ceac4132ffc0fd /drivers/scsi/qla2xxx/qla_dbg.h
parent81b9d1e19d62bf876c3985dbaf53a3a50eedd74b (diff)
downloadlinux-49030003a38a5e3688781e2ccf9550dcebf61282.tar.gz
linux-49030003a38a5e3688781e2ccf9550dcebf61282.tar.bz2
linux-49030003a38a5e3688781e2ccf9550dcebf61282.zip
scsi: qla2xxx: Allow ql2xextended_error_logging special value 1 to be set anytime
ql2xextended_error_logging can now be set to 1 to get the default mask value, as opposed to at module load time only. Link: https://lore.kernel.org/r/20200806111014.28434-7-njavali@marvell.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Arun Easi <aeasi@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_dbg.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_dbg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.h b/drivers/scsi/qla2xxx/qla_dbg.h
index 91eb6901815c..e1d7de63e8f8 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.h
+++ b/drivers/scsi/qla2xxx/qla_dbg.h
@@ -380,5 +380,8 @@ extern int qla24xx_soft_reset(struct qla_hw_data *);
static inline int
ql_mask_match(uint level)
{
+ if (ql2xextended_error_logging == 1)
+ ql2xextended_error_logging = QL_DBG_DEFAULT1_MASK;
+
return (level & ql2xextended_error_logging) == level;
}