]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi_bfin: change handling of communication parameters
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 5 Dec 2007 07:45:17 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Dec 2007 17:21:19 +0000 (09:21 -0800)
commit7e231a4fc48dcde74b23af41d1c279da113e2079
treea4037cc7b238b582c50ff0520c5a47822e0f83fc
parentfd29e0d1d8c774cbfd644f92e53a8dc71299b12c
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>
drivers/spi/spi_bfin5xx.c