summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-01-25 21:59:35 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-28 10:01:36 +0100
commit1b6253ab991d272adf8c84b0a6063b4076253d61 (patch)
treeddd631f1e9f66fbbc455af37fc812dfdc661d252 /common
parentd4c88b90c558d595bec49de933052ad855da5c69 (diff)
downloadbarebox-1b6253ab991d272adf8c84b0a6063b4076253d61.tar.gz
barebox-1b6253ab991d272adf8c84b0a6063b4076253d61.tar.xz
i2c_probe: Use a quick write transfer instead of writing a zero
This matches the method implemented in i2cdetect(8) when using its -q option. With this change an rx8130 RTC is detectable using i2c_probe. This failed before because this chip acks the first byte (containing its address and the R/̅W bit) but nacks the following 0 (representing the target address to write nothing to) which makes i2c_write_reg() return with an error and so the chip is not listed as available. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions