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

Commit 2fa7e95a authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Assert if cold boot calibration times out in debug builds



In order to debug cold boot calibration timeout issues, assert when
it happens in debug builds.

Change-Id: I4ea6ade5fd660e29da2661b95fac2af02758546e
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent f20188bc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2019,6 +2019,7 @@ int cnss_wlan_register_driver(struct cnss_wlan_driver *driver_ops)
					  msecs_to_jiffies(timeout) << 2);
	if (!ret) {
		cnss_pr_err("Timeout waiting for calibration to complete\n");
		CNSS_ASSERT(0);

		cal_info = kzalloc(sizeof(*cal_info), GFP_KERNEL);
		if (!cal_info)