Skip to content
Commit fa02e373 authored by Kai Vehmanen's avatar Kai Vehmanen Committed by Benjamin Cabé
Browse files

drivers: dai: dmic: do not call k_sleep() in PM callbacks



The call to k_sleep() is not safe as dai_dmic_probe() is called
from PM dmic_pm_action() and k_can_yield() may be false.

Problem was caught on Intel WCL ADSP platform with SOF as application
and a Zephyr build with asserts enabled.

Fix the issue by using k_busy_wait() instead.

Signed-off-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
parent af2eaf43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment