spi_mpc83xx: turn off SPI unit while switching mode
commit49bb23006b220c11bcf4e1d3eb99c289e6ab855e
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 31 Jul 2007 07:38:40 +0000 (31 00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:39 +0000 (31 15:39 -0700)
treeb3852d2edebf7704c9662341e1cb886384a2a11c
parent99eb8a550dbccc0e1f6c7e866fe421810e0585f6
spi_mpc83xx: turn off SPI unit while switching mode

Documentation clearly states, that mode should not be changed till
SPMODE_ENABLE bit set.  I've seen hangs w/o this patch.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_mpc83xx.c