Q/RFC: add dts property for i2c apater timeout?

Albrecht Dreß albrecht.dress at arcor.de
Wed Jan 13 06:43:09 EST 2010


Hi,

before submitting a patch, I would like to hear your opinion...

When testing a i2c bus on the '5200, I ran into bus hangs because one of the attached chips went south.  The timeout in struct i2c_adapter of drivers/i2c/busses/i2c-mpc.c is hard-wired to 1 second (HZ jiffies) which is *really* (too) long, at least for my  
use case.

Wouldn't it make sense to add an optional dts property as to overwrite that value?  I.e. something like
	timeout = <xxx>;
where xxx is given in microseconds?  Or should the property read "fsl,timeout" as I would apply it to a Freescale chip?

Thanks, Albrecht.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20100112/b86179b3/attachment.pgp>


More information about the devicetree-discuss mailing list