soundwire: qcom: fix handling of qcom,ports-block-pack-mode
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 4 May 2021 12:59:09 +0000 (13:59 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 May 2021 05:44:13 +0000 (11:14 +0530)
commitda096fbccd52803db3edd9dd0c5ae4079d31c456
tree5b6dc0e2088ac6dea2e3b878a9dc8e30ee3b38ab
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
soundwire: qcom: fix handling of qcom,ports-block-pack-mode

Support to "qcom,ports-block-pack-mode" was added at later stages
to support a variant of Qualcomm SoundWire controllers available
on Apps processor. However the older versions of the SoundWire
controller which are embedded in WCD Codecs do not need this property.

So returning on error for those cases will break boards like DragonBoard
DB845c and Lenovo Yoga C630.

This patch fixes error handling on this property considering older usecases.

Fixes: a5943e4fb14e ("soundwire: qcom: check of_property_read status")
Reported-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Amit Pundir <amit.pundir@linaro.org>
Link: https://lore.kernel.org/r/20210504125909.16108-1-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c