summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2015-03-31 16:35:01 +0200
committerMark Brown <broonie@kernel.org>2015-03-31 17:20:36 +0100
commit232a5adc5199891efde6c844fd15b8d4d18245e6 (patch)
tree3cceb6539b21681d18e64b45af556162be28e170 /drivers/spi/spi.c
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
downloadop-kernel-dev-232a5adc5199891efde6c844fd15b8d4d18245e6.zip
op-kernel-dev-232a5adc5199891efde6c844fd15b8d4d18245e6.tar.gz
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 <m.grzeschik@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud