spi/bfin_spi: sync hardware state before reprogramming everything
authorBarry Song <barry.song@analog.com>
Mon, 30 Nov 2009 03:49:41 +0000 (03:49 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 18 Oct 2010 06:49:37 +0000 (02:49 -0400)
commit9677b0de10433d31e05864dfb4bf33d0c27f752a
treea2689c90aa902b1cb6c0a3fd0345a9fd117930b1
parentb052fd0a44354c655eb98fd715ef52857631dfef
spi/bfin_spi: sync hardware state before reprogramming everything

Sometimes under load, the Blackfin core is able to send SPI register
updates out before the controller is actually disabled.  So when we
go to reprogram the entire state (to switch to a different slave),
make sure we sync after disabling the controller.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/spi/spi_bfin5xx.c