[i2c] [PATCH 0/4] i2c: Introduce i2c listeners
Jean Delvare
khali at linux-fr.org
Thu Jun 5 10:38:23 CEST 2008
Hi Jon,
On Wed, 4 Jun 2008 20:42:00 -0400, Jon Smirl wrote:
> On 6/4/08, David Brownell <david-b at pacbell.net> wrote:
> > Wrong. The probe returns zero if it bound, else negative errno.
> > Those functions don't return booleans.
>
> You guys are so literal. I should have said return 0 or -ENODEV or
> some other error.
Oh, David is several persons now? ;)
> (...)
> There is is a parallel here. With PowerPC device trees I can put the
> exact address of the i2c device into the board specific device tree.
> Now there's no need to probe addresses. That's equivalent to what's
> happening with ACPI and serial ports. Maybe we'll implement device
> trees on all archs and then we can get rid of i2c device probing.
It's the manufacturer who decide, not us. And at the moment, the PC
architecture isn't using device trees for I2C/SMBus. That's an
unfortunate fact we have to live with.
--
Jean Delvare
More information about the i2c
mailing list