diff mbox series

[v2,06/11] qla2xxx: Allow ql2xextended_error_logging special value 1 to be set anytime

Message ID 20200806111014.28434-7-njavali@marvell.com (mailing list archive)
State Accepted
Headers show
Series qla2xxx driver bug fixes | expand

Commit Message

Nilesh Javali Aug. 6, 2020, 11:10 a.m. UTC
From: Arun Easi <aeasi@marvell.com>

ql2xextended_error_logging could now be set anytime to 1 to get the default
mask value, as opposed to load time only.

Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
---
 drivers/scsi/qla2xxx/qla_dbg.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Himanshu Madhani Aug. 12, 2020, 7:43 p.m. UTC | #1
> On Aug 6, 2020, at 6:10 AM, Nilesh Javali <njavali@marvell.com> wrote:
> 
> From: Arun Easi <aeasi@marvell.com>
> 
> ql2xextended_error_logging could now be set anytime to 1 to get the default
> mask value, as opposed to load time only.
> 
> Signed-off-by: Arun Easi <aeasi@marvell.com>
> Signed-off-by: Nilesh Javali <njavali@marvell.com>
> ---
> drivers/scsi/qla2xxx/qla_dbg.h | 3 +++
> 1 file changed, 3 insertions(+)
> 
> 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;
> }
> -- 
> 2.19.0.rc0
> 

Looks Good.

Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

--
Himanshu Madhani	 Oracle Linux Engineering
diff mbox series

Patch

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;
 }