Skip to content
Commit a8e6fc0b authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Kumar Gala
Browse files

drivers: wifi: esp: do not wait at the end of ESP chip reset



esp_reset() is called from net_if init function, which holds net_if lock
after commit 24b49f43 ("net: if: Add locking"). At the end of
esp_reset() there is a blocking wait on `sem_if_up` semaphore. This
semaphore can be release only by esp_init_work(). esp_init_work()
however blocks on net_if operations, because net_if init function (which
invokes esp_reset() underneath) is still holding net_if lock. As a
result there is a deadlock, because esp_reset() and esp_init_work() are
both waiting on each other.

Remove waiting for `sem_if_up`, so that net_if init can exit and release
net_if lock.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent f8e9b505
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment