From: Justin Clacherty Date: Fri, 26 Jan 2007 08:56:44 +0000 (-0800) Subject: [PATCH] spi: fix error setting the spi mode in pxa2xx_spi.c X-Git-Tag: v2.6.20-rc7~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f6ee1adc75bf31d1b76814338f76a88e653cb60;p=pandora-kernel.git [PATCH] spi: fix error setting the spi mode in pxa2xx_spi.c Currently the spi mode can be set to the wrong mode if you are switching from any mode other than mode 0. This is because the mode is set using a bitwise or on uncleared bits. The following patch clears the mode bits before setting the new mode. I've also modified it to use the appropriate defines from pxa-regs.h for readability. Signed-off-by: Justin Clacherty Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed