From: Doug Anderson Date: Wed, 3 Sep 2014 20:44:25 +0000 (-0700) Subject: spi/rockchip: Fix the wait_for_idle() timeout X-Git-Tag: fixes-for-v3.18-merge-window~111^2^6~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64bc0110f1ec905b1676b5ef60c1cc5b1799e1b6;p=pandora-kernel.git spi/rockchip: Fix the wait_for_idle() timeout The wait_for_idle() could get unlucky and timeout too quickly. Specifically, the old calculation was effectively: timeout = jiffies + 1; if (jiffies >= timeout) print warning; From the above it should be obvious that if jiffies ticks in just the wrong place then we'll have an effective timeout of 0. Fix this by effectively changing the above ">=" to a ">". That gives us an extra jiffy to finish. Signed-off-by: Doug Anderson Signed-off-by: Mark Brown --- Reading git-diff-tree failed