[PATCH 2/3] i2c/pxa: only define 'blue_murder'-function if DEBUG is #defined

Russell King - ARM Linux linux at arm.linux.org.uk
Sun Feb 28 10:55:02 EST 2010


On Wed, Feb 24, 2010 at 12:01:45PM +0100, Uwe Kleine-König wrote:
> From: Wolfram Sang <w.sang at pengutronix.de>
> 
> This talkative function is also called on timeouts. As timeouts can
> happen on regular writes to EEPROMs (no error case), this creates false
> positives.  Giving lots of details is interesting only for developers
> anyhow, so just use the function if DEBUG is #defined.

Are you sure this is safe?  If you time out the write before it completes,
how do you know if the write was successful?

I don't think this is "no error code" nor "false positive".  If the timeout
is too short for your EEPROMs, then the timeout needs to be increased.



More information about the linux-arm-kernel mailing list