lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 23 Jun 2011 09:54:25 +0100
From:	Jonathan Cameron <jic23@....ac.uk>
To:	Mark Brown <broonie@...nsource.wolfsonmicro.com>
CC:	linux-kernel@...r.kernel.org,
	Dimitris Papastamos <dp@...nsource.wolfsonmicro.com>,
	Liam Girdwood <lrg@...com>,
	Samuel Oritz <sameo@...ux.intel.com>,
	Lars-Peter Clausen <lars@...afoo.de>,
	Jean Delvare <khali@...ux-fr.org>
Subject: Re: [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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ