* [PATCH/RFC 2/2] 5200: improve i2c bus error recovery
@ 2010-01-22 20:18 Albrecht Dreß
2010-01-25 7:55 ` Wolfgang Grandegger
2010-02-16 19:33 ` Grant Likely
0 siblings, 2 replies; 5+ messages in thread
From: Albrecht Dreß @ 2010-01-22 20:18 UTC (permalink / raw)
To: Linux PPC Development, Devicetree Discussions,
Ben Dooks (embedded platforms)
Make the I2C adapter timeout configurable through a Device Tree property
which gives the timeout in microseconds.
Signed-off-by: Albrecht Dre=DF <albrecht.dress@arcor.de>
---
--- linux-2.6.32-orig/Documentation/powerpc/dts-bindings/fsl/i2c.txt 2009-1=
2-03 04:51:21.000000000 +0100
+++ linux-2.6.32/Documentation/powerpc/dts-bindings/fsl/i2c.txt 2010-01-22 =
16:04:56.000000000 +0100
@@ -21,6 +21,7 @@
- fsl,preserve-clocking : boolean; if defined, the clock settings
from the bootloader are preserved (not touched).
- clock-frequency : desired I2C bus clock frequency in Hz.
+ - timeout : I2C timeout in microseconds.
=20
Examples :
=20
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH/RFC 2/2] 5200: improve i2c bus error recovery
2010-01-22 20:18 [PATCH/RFC 2/2] 5200: improve i2c bus error recovery Albrecht Dreß
@ 2010-01-25 7:55 ` Wolfgang Grandegger
2010-01-25 20:26 ` Albrecht Dreß
2010-02-16 19:33 ` Grant Likely
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Grandegger @ 2010-01-25 7:55 UTC (permalink / raw)
To: Albrecht Dreß
Cc: Linux PPC Development, Devicetree Discussions,
Ben Dooks (embedded platforms)
Albrecht Dreß wrote:
> Make the I2C adapter timeout configurable through a Device Tree property
> which gives the timeout in microseconds.
My understanding is that software properties should not be defined via
the device tree. I think a sysfs entry is more appropriate.
Wolfgang.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH/RFC 2/2] 5200: improve i2c bus error recovery
2010-01-25 7:55 ` Wolfgang Grandegger
@ 2010-01-25 20:26 ` Albrecht Dreß
2010-01-26 7:33 ` Wolfgang Grandegger
0 siblings, 1 reply; 5+ messages in thread
From: Albrecht Dreß @ 2010-01-25 20:26 UTC (permalink / raw)
To: Wolfgang Grandegger
Cc: Linux PPC Development, Devicetree Discussions,
Ben Dooks (embedded platforms)
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
Am 25.01.10 08:55 schrieb(en) Wolfgang Grandegger:
> Albrecht Dreß wrote:
>> Make the I2C adapter timeout configurable through a Device Tree property which gives the timeout in microseconds.
>
> My understanding is that software properties should not be defined via the device tree. I think a sysfs entry is more appropriate.
Is the timeout really a /software/ property? My feeling is that the timeout basically depends upon the bus clock and the chips attached to the bus. Therefore, it is linked closer to the composition of the board's hardware as described in the device tree, than to any userland software. Or am I totally wrong here?
Thanks, Albrecht.
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH/RFC 2/2] 5200: improve i2c bus error recovery
2010-01-25 20:26 ` Albrecht Dreß
@ 2010-01-26 7:33 ` Wolfgang Grandegger
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Grandegger @ 2010-01-26 7:33 UTC (permalink / raw)
To: Albrecht Dreß
Cc: Linux PPC Development, Devicetree Discussions,
Ben Dooks (embedded platforms)
Albrecht Dreß wrote:
> Am 25.01.10 08:55 schrieb(en) Wolfgang Grandegger:
>> Albrecht Dreß wrote:
>>> Make the I2C adapter timeout configurable through a Device Tree
>>> property which gives the timeout in microseconds.
>>
>> My understanding is that software properties should not be defined via
>> the device tree. I think a sysfs entry is more appropriate.
>
> Is the timeout really a /software/ property? My feeling is that the
> timeout basically depends upon the bus clock and the chips attached to
> the bus. Therefore, it is linked closer to the composition of the
> board's hardware as described in the device tree, than to any userland
> software. Or am I totally wrong here?
Well, yes, it seems to be a border case.
Wolfgang.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH/RFC 2/2] 5200: improve i2c bus error recovery
2010-01-22 20:18 [PATCH/RFC 2/2] 5200: improve i2c bus error recovery Albrecht Dreß
2010-01-25 7:55 ` Wolfgang Grandegger
@ 2010-02-16 19:33 ` Grant Likely
1 sibling, 0 replies; 5+ messages in thread
From: Grant Likely @ 2010-02-16 19:33 UTC (permalink / raw)
To: Albrecht Dreß
Cc: Linux PPC Development, Devicetree Discussions,
Ben Dooks (embedded platforms)
On Fri, Jan 22, 2010 at 1:18 PM, Albrecht Dre=DF <albrecht.dress@arcor.de> =
wrote:
> Make the I2C adapter timeout configurable through a Device Tree property
> which gives the timeout in microseconds.
>
> Signed-off-by: Albrecht Dre=DF <albrecht.dress@arcor.de>
>
> ---
>
> --- linux-2.6.32-orig/Documentation/powerpc/dts-bindings/fsl/i2c.txt =A0 =
=A02009-12-03 04:51:21.000000000 +0100
> +++ linux-2.6.32/Documentation/powerpc/dts-bindings/fsl/i2c.txt 2010-01-2=
2 16:04:56.000000000 +0100
> @@ -21,6 +21,7 @@
> =A0- fsl,preserve-clocking : boolean; if defined, the clock settings
> =A0 =A0from the bootloader are preserved (not touched).
> =A0- clock-frequency : desired I2C bus clock frequency in Hz.
> + - timeout : I2C timeout in microseconds.
fsl,timeout to avoid namespace collisions please (ie. if a common i2c
'timeout' property is ever defined for all i2c busses)
g.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-02-16 19:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-22 20:18 [PATCH/RFC 2/2] 5200: improve i2c bus error recovery Albrecht Dreß
2010-01-25 7:55 ` Wolfgang Grandegger
2010-01-25 20:26 ` Albrecht Dreß
2010-01-26 7:33 ` Wolfgang Grandegger
2010-02-16 19:33 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).