Commit e2b7d397 authored by Viken Dadhaniya's avatar Viken Dadhaniya Committed by Carlos Llamas
Browse files

UPSTREAM: slimbus: qcom-ngd-ctrl: Add timeout for wait operation



commit 98241a77 upstream.

In current driver qcom_slim_ngd_up_worker() indefinitely
waiting for ctrl->qmi_up completion object. This is
resulting in workqueue lockup on Kthread.

Added wait_for_completion_interruptible_timeout to
allow the thread to wait for specific timeout period and
bail out instead waiting infinitely.

Fixes: a899d324 ("slimbus: qcom-ngd-ctrl: add Sub System Restart support")
Cc: stable@vger.kernel.org
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Change-Id: I51832357f78977a7365c73ddaf525b47e3322d71
Signed-off-by: default avatarViken Dadhaniya <quic_vdadhani@quicinc.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20240430091238.35209-2-srinivas.kandagatla@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ad066c9b)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent b37bc91b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment