From: Michael Grzeschik Date: Tue, 31 Mar 2015 14:35:01 +0000 (+0200) Subject: spi: bitbang: only toggle bitchanges X-Git-Tag: omap-for-v4.1/fixes-rc1~176^2~5^6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232a5adc5199891efde6c844fd15b8d4d18245e6;p=pandora-kernel.git spi: bitbang: only toggle bitchanges The current implementation of bitbang_txrx_be_cpha0 and bitbang_txrx_be_cpha1 always call setmosi. That runs into several unnecessary calls into the gpiolib when the level of the GPIO actually has not to be changed. This patch changes the routines to remember the last GPIO level and only calls setmosi if an change has to be made. This way it improves the transfer throughput. Signed-off-by: Michael Grzeschik Signed-off-by: Mark Brown --- Reading git-diff-tree failed