soundwire: qcom: Add flag for software clock gating check
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Fri, 1 Jul 2022 07:17:06 +0000 (12:47 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 6 Jul 2022 07:07:23 +0000 (12:37 +0530)
commit1fd0d85affe4d64e54b81d04bf9577e57172a341
treeecd02206dc86315efdfd17341431e0b93b9ae086
parent33ba01788889666d90abb89a9c057c6ff8135178
soundwire: qcom: Add flag for software clock gating check

Validate software clock gating required or not and do software
clock gating on hclk if soundwire is operational and keep it
running by adding flag in private data structure.
This is to avoid conflict between older architectures,
where software clock gating is not required and on latest
architectures, where software clock gating is mandatory.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/1656659827-27450-2-git-send-email-quic_srivasam@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c