From: Mike Dunn Date: Thu, 10 Oct 2013 17:25:27 +0000 (-0700) Subject: mtd: docg4: fix status polling loop X-Git-Tag: v3.13-rc1~98^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fee840c03d944ed1564c127375a702e242d9555;p=pandora-kernel.git mtd: docg4: fix status polling loop The loop that polls the status register waiting for an operation to complete foolishly bases the timeout simply on the number of loop iterations that have ocurred. When I increased the processor clock speed, timeouts started to appear for long block erasure operations. This patch measures the timeout using jiffies. Signed-off-by: Mike Dunn Signed-off-by: Brian Norris --- Reading git-diff-tree failed