soundwire: qcom: correct setting ignore bit on v1.5.1
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 22 Feb 2023 14:03:43 +0000 (15:03 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Apr 2023 10:00:03 +0000 (15:30 +0530)
According to the comment and to downstream sources, the
SWRM_CONTINUE_EXEC_ON_CMD_IGNORE in SWRM_CMD_FIFO_CFG_ADDR register
should be set for v1.5.1 and newer, so fix the >= operator.

Fixes: 542d3491cdd7 ("soundwire: qcom: set continue execution flag for ignored commands")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230222140343.188691-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c

index 33542487029005a91f59dc15acb4b76f69ebeb3b..ba502129150d54d0a9a1d9d5c5f8201aba634e9c 100644 (file)
@@ -704,7 +704,7 @@ static int qcom_swrm_init(struct qcom_swrm_ctrl *ctrl)
        }
 
        /* Configure number of retries of a read/write cmd */
-       if (ctrl->version > 0x01050001) {
+       if (ctrl->version >= 0x01050001) {
                /* Only for versions >= 1.5.1 */
                ctrl->reg_write(ctrl, SWRM_CMD_FIFO_CFG_ADDR,
                                SWRM_RD_WR_CMD_RETRIES |