Re: [PATCH 1/7] mfd: cros_ec: spi: calculate delay between transfers correctly

From: Simon Glass
Date: Fri Apr 18 2014 - 13:28:19 EST


On 17 April 2014 11:59, Doug Anderson <dianders@xxxxxxxxxxxx> wrote:
> From: David Hendricks <dhendrix@xxxxxxxxxxxx>
>
> To avoid spamming the EC we calculate the time between the previous
> transfer and the current transfer and force a delay if the time delta
> is too small.
>
> However, a small miscalculation causes the delay period to be
> far too short. Most noticably this impacts commands with a long
> turnaround time such as EC firmware reads and writes.
>
> Signed-off-by: David Hendricks <dhendrix@xxxxxxxxxxxx>
> Signed-off-by: Doug Anderson <dianders@xxxxxxxxxxxx>

Reviewed-by: Simon Glass <sjg@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/