]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: program registers as soon as possible
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Mar 2015 12:58:56 +0000 (14:58 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2015 20:29:03 +0000 (20:29 +0000)
commit78c4dfe05f4953e6b5ede7b65f5d3583ec1640a1
tree167bb3806be464fcb50cae5769da30ba280f829b
parent8fc8578ad2af3739a04fa9505290e1a540101cda
spi: dw: program registers as soon as possible

This patch refactors the code in pump_transfers() to reprogram the registers
immediately when we have a new configuration data. The behaviour is slightly
modified:
 - chip is always disabled and reenabled
 - CTRL0 is always reprogrammed

This change allows to do a further refactoring and simplier conversion to use
SPI core DMA routines in the future.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c