public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC] Make i2c probe opt-outable?
@ 2012-05-17 18:43 Tom Rini
  2012-05-18  2:48 ` Mike Frysinger
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Rini @ 2012-05-17 18:43 UTC (permalink / raw)
  To: u-boot

Hey all,

I'd like to propose making 'i2c probe' be a command that is
opt-out'able.  In the Linux Kernel the notion of probing for devices was
abandoned a while ago due to, in short, devices misbehaving when
randomly poked at.  Over in omap24xx_i2c land we changed our probe
method a while ago from an attempted read to an attempted write as some
i2c devices would NAK the read.  But now with the am33xx SoM family we
have a new issue which is that attempting to write to an address doesn't
immediately issue a NAK so probe sees all addresses as valid and in turn
leaves the bus upset.  I've worked around this for now by making
i2c_probe use the read method instead, only on am33xx (so most devices
would be spotted, but the ones that caused the initial change would not
show up).  But a possibly better solution is to just make the i2c probe
command not implemented for am33xx (as you don't have to run i2c probe
to try and use your device).

Thoughts?  Thanks!

-- 
Tom

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

end of thread, other threads:[~2012-05-21 16:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-17 18:43 [U-Boot] [RFC] Make i2c probe opt-outable? Tom Rini
2012-05-18  2:48 ` Mike Frysinger
2012-05-18 16:11   ` Tom Rini
2012-05-18 16:18     ` Mike Frysinger
2012-05-18 18:26     ` Wolfgang Denk
2012-05-18 18:43       ` Tom Rini
2012-05-18 21:52         ` Wolfgang Denk
2012-05-21 16:48           ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox