[PATCH 6/6 v14] gpio: Add block gpio to several gpio drivers
Mark Brown
broonie at opensource.wolfsonmicro.com
Thu Jan 24 07:17:30 EST 2013
On Thu, Jan 24, 2013 at 01:02:38PM +0100, Stijn Devriendt wrote:
> As a fictive example, consider the i2c-bitbang driver, which you could optimize
> by using block-gpio with sda/scl in a single block. By offering the
> block-gpio API
> even when you cannot set all bits at once, you could cause timing issues.
> You might be toggling the clock line before pushing out data, for example.
> The same holds below, for a driver that has separate hi/lo bits.
If there's a strict ordering requirement on updates then I would expect
a user to explictly code that in hardware otherwise there may be
hardware level issues with unpredictable results; besides in general it
seems silly to force users to open code both versions if they don't want
to rely on this API.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130124/6f8b79d6/attachment.sig>
More information about the linux-arm-kernel
mailing list