All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] i2c: qcom-geni: Make it possible to run i2cdetect
@ 2022-07-17  3:50 Bjorn Andersson
  2022-07-17  3:50 ` [PATCH 1/3] i2c: qcom-geni: Use the correct return value Bjorn Andersson
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Bjorn Andersson @ 2022-07-17  3:50 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Vinod Koul, Wolfram Sang
  Cc: linux-arm-msm, linux-i2c, linux-kernel

Attempting to run i2cdetect shows that error handling in the GENI I2C driver
could be better.

The first issue is that errors aren't returned from the driver. Following this
is an issue that if a timeout occurs the current operation is aborted, but the
abort code races with the isr so the abort times out as well. Lastly when this
happens, the driver is quite noisy, making it impossible to run i2cdetect on
the serial console.

With this series in place, I was able to run i2cdetect on the db845c and two
sc8180x devices - and get useful output.

Bjorn Andersson (3):
  i2c: qcom-geni: Use the correct return value
  i2c: qcom-geni: Propagate GENI_ABORT_DONE to geni_i2c_abort_xfer()
  i2c: qcom-geni: Silence NACK and GENI_TIMEOUT

 drivers/i2c/busses/i2c-qcom-geni.c | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-07-24 18:39 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-17  3:50 [PATCH 0/3] i2c: qcom-geni: Make it possible to run i2cdetect Bjorn Andersson
2022-07-17  3:50 ` [PATCH 1/3] i2c: qcom-geni: Use the correct return value Bjorn Andersson
2022-07-18  5:36   ` Vinod Koul
2022-07-18 22:28     ` Bjorn Andersson
2022-07-19 20:36   ` Andrew Halaney
2022-07-20  4:31   ` Vinod Koul
2022-07-24  5:04   ` Wolfram Sang
2022-07-24  7:30     ` Johan Hovold
2022-07-24 18:37       ` Wolfram Sang
2022-07-24 18:39     ` Wolfram Sang
2022-07-17  3:50 ` [PATCH 2/3] i2c: qcom-geni: Propagate GENI_ABORT_DONE to geni_i2c_abort_xfer() Bjorn Andersson
2022-07-18  5:36   ` Vinod Koul
2022-07-19 20:50   ` Andrew Halaney
2022-07-19 20:57     ` Andrew Halaney
2022-07-24  5:15       ` Wolfram Sang
2022-07-24  5:15   ` Wolfram Sang
2022-07-17  3:50 ` [PATCH 3/3] i2c: qcom-geni: Silence NACK and GENI_TIMEOUT Bjorn Andersson
2022-07-18  5:37   ` Vinod Koul
2022-07-24  5:23   ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.