Re: [PATCH 2/2] i2c-intel-mid: improve timeout handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24/11/10 14:49, Alan Cox wrote:
> From: Bin Yang <bin.yang@xxxxxxxxx>
> 
> 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@xxxxxxxxx>
> [Ported to the upstream branch and extracted as a helper function]
> Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
> ---
> 
>  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

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux