diff options
author | Viken Dadhaniya <quic_vdadhani@quicinc.com> | 2024-04-30 10:12:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-03 07:30:32 +0200 |
commit | 98241a774db49988f25b7b3657026ce51ccec293 (patch) | |
tree | 7e4e53318df2444524fb162a439177b1f54dea13 /drivers/dma/idxd/debugfs.c | |
parent | 00e7d3bea2ce7dac7bee1cf501fb071fd0ea8f6c (diff) |
slimbus: qcom-ngd-ctrl: Add timeout for wait operation
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: a899d324863a ("slimbus: qcom-ngd-ctrl: add Sub System Restart support")
Cc: stable@vger.kernel.org
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Viken Dadhaniya <quic_vdadhani@quicinc.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20240430091238.35209-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma/idxd/debugfs.c')
0 files changed, 0 insertions, 0 deletions