From: Peter Korsgaard Date: Sat, 13 Sep 2008 09:33:14 +0000 (-0700) Subject: spi_mpc83xx: fix clockrate calculation for low speed X-Git-Tag: v2.6.27-rc7~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53604dbe1371c3c4458c2d741adbd8cfd8fe8e79;p=pandora-kernel.git spi_mpc83xx: fix clockrate calculation for low speed Commit a61f5345 (spi_mpc83xx clockrate fixes) broke clockrate calculation for low speeds. SPMODE_DIV16 should be set if the divider is higher than 64, not only if the divider gets clipped to 1024. Furthermore, the clipping check was off by a factor 16 as well. Signed-off-by: Peter Korsgaard Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed