diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-03-02 15:58:56 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-06 23:29:03 +0300 |
commit | 0b2e8915ead06b21d8f2360bfc28e747c4c0df8c (patch) | |
tree | 167bb3806be464fcb50cae5769da30ba280f829b /lib/usercopy.c | |
parent | 45746e82cf89f432f9c986a52137d8a64b78aba9 (diff) | |
download | linux-0b2e8915ead06b21d8f2360bfc28e747c4c0df8c.tar.xz |
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>
Diffstat (limited to 'lib/usercopy.c')
0 files changed, 0 insertions, 0 deletions