diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-01-25 21:59:35 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-28 10:01:36 +0100 |
commit | 1b6253ab991d272adf8c84b0a6063b4076253d61 (patch) | |
tree | ddd631f1e9f66fbbc455af37fc812dfdc661d252 /commands/md.c | |
parent | d4c88b90c558d595bec49de933052ad855da5c69 (diff) | |
download | barebox-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 'commands/md.c')
0 files changed, 0 insertions, 0 deletions