]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
spi: spi-mpc512x-psc: let transmiter/receiver enabled when in xfer loop
authorAnatolij Gustschin <agust@denx.de>
Mon, 1 Apr 2013 15:31:19 +0000 (17:31 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 9 Apr 2013 16:53:39 +0000 (17:53 +0100)
commitc3e2aa861005ec390e8a7556d1a1e980be1a6e1f
tree3e62ae3e82a1a97db9480c1f0889d2db599b8798
parent86e98743ec168b98eea3dfacc1e8b5ff442eb70d
spi: spi-mpc512x-psc: let transmiter/receiver enabled when in xfer loop

There is no need to disable transmitter/receiver after each loop
iteration and re-enable it for next loop iteration. Enable the
transmitter/receiver before xfer loop starts and disable it when
the whole transfer is done.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-mpc512x-psc.c