]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: qcom-geni: Use the correct return value
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 17 Jul 2022 03:50:25 +0000 (20:50 -0700)
committerWolfram Sang <wsa@kernel.org>
Sun, 24 Jul 2022 18:35:18 +0000 (20:35 +0200)
commitcb86914b3e8cf2ca827ac997e1731daa7d111541
treef5c5ea0f6b2c3d20ef606f73b3b7b88a9ca0a4e9
parentbe14ad05f9b6d55890c0d04bd2a8b77d8008e3f0
i2c: qcom-geni: Use the correct return value

The introduction of GPI support moved things around and instead of
returning the result from geni_i2c_xfer() the number of messages in the
request was returned, ignoring the actual result. Fix this.

Fixes: 3d30f5372104 ("i2c: qcom-geni: Add support for GPI DMA")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-qcom-geni.c