diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2007-12-04 23:45:17 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-05 09:21:19 -0800 |
commit | cc487e732089360727e60f9fdbe3ff6cc4ca3155 (patch) | |
tree | a4037cc7b238b582c50ff0520c5a47822e0f83fc /drivers/spi/spi_txx9.c | |
parent | 12e17c4267a5b2a5ba77bd53a62388be641534b8 (diff) |
spi: spi_bfin: change handling of communication parameters
Fix SPI driver to work with SPI flash ST M25P16 on bf548
Currently the SPI driver enables the SPI controller and sets the SPI baud
register for each SPI transfer. But they should never be changed within a SPI
message session, in which several SPI transfers are pumped.
This patch moves SPI setting to the begining of a message session, and
never disables SPI controller until an error occurs.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
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>
Diffstat (limited to 'drivers/spi/spi_txx9.c')
0 files changed, 0 insertions, 0 deletions