cnss2: Assert when power on retry reaches maximum

In order to catch the issue immediately, assert when power on retry
for PCIe resume reaches maximum.

Change-Id: Ie370e031e68721b531aae909f56bc45b9d9b59d8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
Yue Ma 2020-09-23 10:54:32 -07:00 • committed by Gerrit - the friendly Code Review server
commit 74bb9a8d87

View file

@ -1990,6 +1990,8 @@ retry:
msleep(POWER_ON_RETRY_DELAY_MS * retry);
goto retry;
}
/* Assert when it reaches maximum retries */
CNSS_ASSERT(0);
goto power_off;
}