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: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
Yue Ma 2020-03-09 12:04:12 -07:00 • committed by Gerrit - the friendly Code Review server
commit 8b8f86a082

View file

@ -2093,6 +2093,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)