diff mbox series

[1/5] lpfc: Set sli4_param's cmf option to zero when CMF is turned off

Message ID 20221017164323.14536-1-justintee8345@gmail.com
State New
Headers show
Series [1/5] lpfc: Set sli4_param's cmf option to zero when CMF is turned off | expand

Commit Message

Justin Tee Oct. 17, 2022, 4:43 p.m. UTC
Add missed clearing of phba->sli4_hba.pc_sli4_params.cmf when CMF is turned
off.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
---
 drivers/scsi/lpfc/lpfc_sli.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin K. Petersen Oct. 22, 2022, 3:20 a.m. UTC | #1
Justin,

> Add missed clearing of phba->sli4_hba.pc_sli4_params.cmf when CMF is turned
> off.

Applied to 6.2/scsi-staging, thanks!
Martin K. Petersen Oct. 27, 2022, 2:58 a.m. UTC | #2
On Mon, 17 Oct 2022 09:43:19 -0700, Justin Tee wrote:

> Add missed clearing of phba->sli4_hba.pc_sli4_params.cmf when CMF is turned
> off.
> 
> 

Applied to 6.2/scsi-queue, thanks!

[1/5] lpfc: Set sli4_param's cmf option to zero when CMF is turned off
      https://git.kernel.org/mkp/scsi/c/4fc66e7b16ad
[2/5] lpfc: Fix hard lockup when reading the rx_monitor from debugfs
      https://git.kernel.org/mkp/scsi/c/c44e50f4a0ec
[3/5] lpfc: Log when congestion management limits are in effect
      https://git.kernel.org/mkp/scsi/c/eaf660e4282b
[4/5] lpfc: Create a sysfs entry called lpfc_xcvr_data for transceiver info
      https://git.kernel.org/mkp/scsi/c/479b0917e447
[5/5] lpfc: Update lpfc version to 14.2.0.8
      https://git.kernel.org/mkp/scsi/c/24b3e45ca9c5
diff mbox series

Patch

diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 99d06dc7ddf6..768294b9bc0b 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -8354,6 +8354,7 @@  lpfc_cmf_setup(struct lpfc_hba *phba)
 			phba->cgn_i = NULL;
 			/* Ensure CGN Mode is off */
 			phba->cmf_active_mode = LPFC_CFG_OFF;
+			sli4_params->cmf = 0;
 			return 0;
 		}
 	}