Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 329e3234 authored by Manikandan Mohan's avatar Manikandan Mohan
Browse files

cnss2: Ignore calibration trigger if already in progress



Ignore calibration request if its already in progress.

Change-Id: I8b516393fa1169263021403cc2e10160eac06615
Signed-off-by: default avatarManikandan Mohan <manikand@codeaurora.org>
parent eca62752
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1466,6 +1466,9 @@ static int cnss_cold_boot_cal_start_hdlr(struct cnss_plat_data *plat_priv)
	if (test_bit(CNSS_COLD_BOOT_CAL_DONE, &plat_priv->driver_state)) {
		cnss_pr_dbg("Calibration complete. Ignore calibration req\n");
		goto out;
	} else if (test_bit(CNSS_IN_COLD_BOOT_CAL, &plat_priv->driver_state)) {
		cnss_pr_dbg("Calibration in progress. Ignore new calibration req\n");
		goto out;
	}

	if (test_bit(CNSS_DRIVER_LOADING, &plat_priv->driver_state) ||