From: David Hendricks Date: Wed, 30 Apr 2014 17:44:04 +0000 (-0700) Subject: mfd: cros_ec: spi: Calculate delay between transfers correctly X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~6^2~14 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe368665b1499041919d78467147849989af7c9;p=pandora-kernel.git mfd: cros_ec: spi: Calculate delay between transfers correctly 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 Signed-off-by: Doug Anderson Reviewed-by: Simon Glass Tested-by: Andrew Bresticker Tested-by: Stephen Warren Signed-off-by: Lee Jones --- Reading git-diff-tree failed