soundwire: qcom: use newer link status tregister on v2.0.0
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 28 Jul 2023 11:28:47 +0000 (13:28 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Sep 2023 09:32:05 +0000 (11:32 +0200)
commit5d78c7d684192e42241593a936ee60003d8ac064
tree554336aa8a5e445ef16e63ef0f9af811066a1b13
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
soundwire: qcom: use newer link status tregister on v2.0.0

Soundwire v2.0.0 comes with a new register LINK_STATUS for the
FRAME_GEN_ENABLED field (bit indicating that an active frame is
running).  The old register COMP_STATUS is still there and still works,
although the new one is preferred in downstream sources.  Probably
because it allows to choose Soundwire instance per CPU.  Most of the
code allowing to use new register for Soundwire v2.0.0 was already there
as part of commit 312355a6a9f6 ("soundwire: qcom: add support for v2.0.0
controller"), so switch to it in swrm_wait_for_frame_gen_enabled()
function.  This should not have functional impact, because the old
register still behaves correctly.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230728112848.67092-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c