[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-i2c
Subject: Re: [i2c] [PATCH] i2c-pca-algo: Fix errorcode
From: Wolfram Sang <w.sang () pengutronix ! de>
Date: 2008-05-20 19:42:07
Message-ID: 20080520194206.GA11088 () pengutronix ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hi Jean,
On Tue, May 20, 2008 at 08:17:55PM +0200, Jean Delvare wrote:
> EBUSY is a fatal error, while a you should be able to retry the
> transaction later when the bus is free. So I think that EAGAIN would be
> more appropriate.
Okay, fine with me. (Does somebody know of a guide with references for
using errorcodes? EBUSY or EAGAIN? ENODEV or ENXIO? Preferred error
value if ioremap fails? It seems a bit messy. The patch that was
recently posted, defining possible situations for errorcodes within I2C
is really great. I wished I would have something like this for the
general kernel-routines.)
Wolfram
--=20
Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
["signature.asc" (application/pgp-signature)]
_______________________________________________
i2c mailing list
i2c@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic