OSDN Git Service

soc: qcom: glink_ssr: Initialize waitqueue in probe function
authorDhoat Harpal <hdhoat@codeaurora.org>
Mon, 12 Mar 2018 11:42:13 +0000 (17:12 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 8 May 2018 06:35:18 +0000 (23:35 -0700)
commitc3aacf23410c61ba0d1945301dadff6b662332fd
tree68d7e55e3aa39e7eb6beb84cc5570c4fad3065a8
parent463cf733689568e014555ceeba83f2f0dcaacf5a
soc: qcom: glink_ssr: Initialize waitqueue in probe function

waitqueue is initialized on every call to notify_for_subsystem.
This leads to stability issue if one thread is waiting for completion
and another thread re-initializes it.

Waitqueue is initialized only in probe function.

CRs-Fixed: 2197181
Change-Id: I3509a7c4a197c727b2025c1aeb6a35690c3c8501
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
drivers/soc/qcom/glink_ssr.c