Skip to content
Commit 913ee469 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Wolfram Sang
Browse files

i2c: qcom-geni: Propagate GENI_ABORT_DONE to geni_i2c_abort_xfer()



Waiting for M_CMD_ABORT_EN in geni_i2c_abort_xfer() races with the
interrupt handler which will read and clear the abort bit, the result is
that every abort attempt takes 1 second and is followed by a message
about the abort having times out.

Introduce a new state variable to carry the abort_done state from the
interrupt handler back to geni_i2c_abort_xfer(). Also, turn NACK
and TIMEOUT errors into debug messages

Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: default avatarVinod Koul <vkoul@kernel.org>
[wsa: squashed two patches into one]
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent ac720e3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment