spi: fsl-espi: don't write ESPI_SPMODE register if the mode doesn't change
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 4 Nov 2016 20:01:12 +0000 (21:01 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 4 Nov 2016 20:46:39 +0000 (14:46 -0600)
commit8f3086d2a9c1104f42d2d0247ef52b01c6d898d8
tree26e56443abcf6ac574670471a5fe5e88ef69cf6a
parent60d9531a61efc8e6b69d04089d50a0a929090fe1
spi: fsl-espi: don't write ESPI_SPMODE register if the mode doesn't change

There's no need to bother the chip if the mode doesn't change.

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