[lkml]   [2011]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/8] Generic I2C and SPI register map library
On 06/23/11 02:25, Mark Brown wrote:
> On Thu, Jun 23, 2011 at 12:48:28AM +0200, torbenh wrote:
>> you should look at SMBus
>> there seems to be quite some code to share.
>> in particular i2c rtc devices seem to be using SMBus functions
>> to get the exact same semantics you are providing here.
> SMBus is an I2C subset with a definition for 8 bit registers layered
> onto it, pretty much.
>> I just added support for such a device today, and it struck me, that
>> this API was necessary.
> If you're only using SMBus then the I2C interface includes SMBus based
> register support which should do what you want. With the regmap API it
> ought to work as a device with 8 bit registers and 8 bit values.

The kicker here is that quite a few hosts only support the smbus subset.
How should that be handled here?

 \ /
  Last update: 2011-06-23 10:49    [W:0.066 / U:1.116 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site