From: Andy Shevchenko Date: Mon, 2 Mar 2015 12:58:56 +0000 (+0200) Subject: spi: dw: program registers as soon as possible X-Git-Tag: omap-for-v4.1/fixes-rc1~176^2~4^4~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b2e8915ead06b21d8f2360bfc28e747c4c0df8c;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed