On domenica 3 aprile 2022 13:48:31 CEST Pavel Skripkin wrote:
Hi Michael,
msleep() cannot be called in atomic context:
drivers/staging/r8188eu/core/rtw_pwrctrl.c:379
if (pwrpriv->ps_processing) {
while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000)
msleep(10);
}
I wanted to use mdelay() (allowed under spinlocks because it does not
sleep) but Dan said to leave it as it is. You might easily find this
discussion on this list. I cannot remember why Dan was against replacing
msleep() with mdelay(). Please try to find that thread.