From: Ben Dooks <ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
To: Alan Cox <alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/2] i2c-intel-mid: improve timeout handling
Date: Mon, 06 Dec 2010 04:32:31 +0000 [thread overview]
Message-ID: <4CFC675F.2000904@fluff.org> (raw)
In-Reply-To: <20101124144920.10210.36601.stgit-Z/y2cZnRghHXmaaqVzeoHQ@public.gmane.org>
On 24/11/10 14:49, Alan Cox wrote:
> From: Bin Yang <bin.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> The old solution for i2c xfer timeout was to set timeout value to one second
> for all i2c xfers. That's not reasonable for all of the various speed modes
> and data lengths.
>
> This patch sets the xfer_read timeout value based on both bus speed and data
> length.
>
> Signed-off-by: Bin Yang <bin.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> [Ported to the upstream branch and extracted as a helper function]
> Signed-off-by: Alan Cox <alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
> ---
>
> drivers/i2c/busses/i2c-intel-mid.c | 31 +++++++++++++++++++++++++++----
> 1 files changed, 27 insertions(+), 4 deletions(-)
>
>
> diff --git a/drivers/i2c/busses/i2c-intel-mid.c b/drivers/i2c/busses/i2c-intel-mid.c
> index bdf17da..b39abd8 100644
> --- a/drivers/i2c/busses/i2c-intel-mid.c
> +++ b/drivers/i2c/busses/i2c-intel-mid.c
> @@ -303,6 +303,29 @@ static int ctl_num = 6;
> module_param_array(speed_mode, int, &ctl_num, S_IRUGO);
> MODULE_PARM_DESC(speed_mode, "Set the speed of the i2c interface (0-2)");
ok, will queue for next merge window
next prev parent reply other threads:[~2010-12-06 4:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-24 14:49 [PATCH 1/2] i2c_intel_mid: Improve error reporting Alan Cox
[not found] ` <20101124144904.10210.90314.stgit-Z/y2cZnRghHXmaaqVzeoHQ@public.gmane.org>
2010-11-24 14:49 ` [PATCH 2/2] i2c-intel-mid: improve timeout handling Alan Cox
[not found] ` <20101124144920.10210.36601.stgit-Z/y2cZnRghHXmaaqVzeoHQ@public.gmane.org>
2010-12-06 4:32 ` Ben Dooks [this message]
2010-12-06 4:31 ` [PATCH 1/2] i2c_intel_mid: Improve error reporting Ben Dooks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CFC675F.2000904@fluff.org \
--to=ben-i2c-elnmno+kys3ytjvyw6ydsg@public.gmane.org \
--cc=alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.