Commit 0cf87618 authored by Surabhi Vishnoi's avatar Surabhi Vishnoi Committed by Zhihong Yu
Browse files

CHROMIUM: ath10k: Skip queuing restart work when wmi cmd timeout and firmware is down



The condition in wait_event_timeout is not atomic, so when timeout
happens, this may be lead to preemption in between without evaluating
the condition fully.

To fix this issue, add a condition to test whether firmware is
down or not using ATH10K_FLAG_CRASH_FLUSH bit after timeout happens.
If ATH10K_FLAG_CRASH_FLUSH bit is also not set then only queue the work
to restart the hardware.

BUG=b:132147953
TEST=None

Change-Id: I0d5b4e842b7dd3e23757803ea822eed518084bea
Signed-off-by: default avatarSurabhi Vishnoi <svishnoi@codeaurora.org>
Signed-off-by: default avatarVamsi Singamsetty <vamssi@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1597060


Reviewed-by: default avatarZhihong Yu <zhihongyu@chromium.org>
Reviewed-by: default avatarGovind Singh <govinds@qualcomm.corp-partner.google.com>
Commit-Queue: Zhihong Yu <zhihongyu@chromium.org>
Tested-by: default avatarZhihong Yu <zhihongyu@chromium.org>
parent e6a6cd0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment