]> git.karo-electronics.de Git - linux-beck.git/commit
spi: fsl-espi: simplify and inline function fsl_espi_change_mode
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 27 Oct 2016 19:26:46 +0000 (21:26 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Oct 2016 18:39:24 +0000 (19:39 +0100)
commitb3bec5f95f73520feb05b90244522f24546e96aa
tree7f50cb1fdb84bf06d4d68d788747e6a46ebc0355
parentf895e27f591228704954cc8927d9c61b3f3da90f
spi: fsl-espi: simplify and inline function fsl_espi_change_mode

The ESPI spec mentions no requirement to turn off the ESPI unit prior
to changing the mode. Most likely the ESPI unit is only turned off to
clear the FIFO's as before this patch series single bytes could
remain in the TX FIFO after transfer end.
Therefore remove disabling / re-enabling the ESPI unit.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c