Hi David,

On Thu, 1 May 2008 20:46:07 -0700, David Brownell wrote:
> Tighten error paths used by various other i2c adapters so they
> return real fault/errno codes instead of a literal "-1" (which
> is most often interpreted as "-EPERM").  Build tested.
> 
> Signed-off-by: David Brownell <[EMAIL PROTECTED]>
> ---
> NOTE there are many other adapter drivers to audit and update; and
> they're not just within the drivers/i2c tree.  This patch is a PC
> oriented start on some bottom-up improvement of fault reporting.
> The i2c-gpio code looks be good too.
> 
>  drivers/i2c/algos/i2c-algo-bit.c      |   11 +++++---
>  drivers/i2c/busses/i2c-ali1535.c      |   22 +++++++---------
>  drivers/i2c/busses/i2c-ali1563.c      |    4 +--
>  drivers/i2c/busses/i2c-ali15x3.c      |   19 +++++++-------
>  drivers/i2c/busses/i2c-amd756-s4882.c |    4 +--
>  drivers/i2c/busses/i2c-amd756.c       |   18 +++++++------
>  drivers/i2c/busses/i2c-amd8111.c      |   44 
> +++++++++++++++++++++------------
>  drivers/i2c/busses/i2c-i801.c         |   45 
> +++++++++++++++++-----------------
>  drivers/i2c/busses/i2c-nforce2.c      |   25 +++++++++---------
>  drivers/i2c/busses/i2c-piix4.c        |   20 ++++++++-------
>  drivers/i2c/busses/i2c-sis5595.c      |   19 ++++++++------
>  drivers/i2c/busses/i2c-sis630.c       |   43 ++++++++++++++++++--------------
>  drivers/i2c/busses/i2c-sis96x.c       |   20 ++++++++-------
>  drivers/i2c/busses/i2c-stub.c         |    4 +--
>  drivers/i2c/busses/i2c-viapro.c       |   20 ++++++++-------
>  15 files changed, 176 insertions(+), 142 deletions(-)

I am in the process of reviewing and testing this patch. I think it
would help me if you could list your error value choices for the common
error conditions of I2C and SMBus controllers (bus busy, arbitration
lost, transaction timeout, etc.) With such a list I could check the
different drivers for consistency, and maybe this could even become
documentation for future driver authors.

Thanks,
-- 
Jean Delvare

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

Reply via email to