Thread (1 message) 1 message, 1 author, 2012-02-07

Re: [PATCH 1/4] i2c/gpio-i2c add: add DT support

From: Mark Brown <hidden>
Date: 2012-02-07 11:25:47
Also in: linux-arm-kernel, linux-i2c

On Tue, Feb 07, 2012 at 03:56:24AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
On 16:09 Mon 06 Feb     , Mark Brown wrote:
quoted
quoted
+	- udelay: half clock cycle time in us (may depend on each platform)
quoted
quoted
+	udelay = <2>;		/* ~100 kHz */
quoted
Why not specify this in kHz and do the conversion in the driver?  It
seems a more intuitive thing to be specifying.  I appreciate that the
platform data used udelay but it seems an entirely unintuitive thing
from a user point of view even if it's what the implementation wants.
because it's not accurate and on some platform you need to adapt it so we keep
the udelay
Then you should clarify that in the documentation, it's not the cycle
time but the delay between GPIO operations which isn't quite the same
thing.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help