Skip to contentSkip to conversation

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

DISCUSSION Albrecht Dreß 1 participant 1 message Jan 12, 2010

lore
Share & tools
lore
#0 lore raw

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.

_______________________________________________
devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss