Hi Mark, Andrey,
> On Wed, Jan 11, 2006 at 10:03:24PM +0300, Andrey Volkov wrote:
> <snip>
> > P.S. Jean, "i2c_master_send vs i2c_smbus_write_byte_data"
> > problem still open.
> > Could you made executive decision about it?
>
> I'm taking the roaring silence to mean nobody really cares so I don't
> really have a problem going your way. I'll submit a patch and if it
> gets pooh-pooh'd, we can always change it back.
Sorry for the very late answer, I hadn't realized you were waiting for
me.
The I2C vs. SMBus interface choice is yours (as long as the device
supports both). I2C brings performance, SMBus gives you compatibility.
Depending on the device you are writing a driver for, compatibility may
or may not matter. For example, for a hardware monitoring chip driver,
we always go for SMBus, because these chips are almost always connected
to non-I2C SMBus masters. But RTC drivers are typically not used on
mainstream PC motherboards so the compatibility may not be needed.
So, as Mark says, you should just go with the code you have right now.
If it is SMBus and someone finds it too slow, that person can always
add I2C access afterwards. OTOH if it is I2C and someone ever needs
compatibility with a non-I2C master, that person gets to add the code.
Note that it is perfectly acceptable to have *both* I2C and SMBus
access methods in the same driver, if compatibility is wanted but the
performance gain using I2C is significant. Of course it means more code
in the driver, but as long as both access methods work and are properly
maintained, it's fine with me.
Thanks,
--
Jean Delvare
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]