]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: fsl-espi: remove unneeded call to fsl_espi_setup_transfer
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 4 Nov 2016 20:00:40 +0000 (21:00 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 4 Nov 2016 20:46:39 +0000 (14:46 -0600)
Resetting the chip to a default transfer mode after each transfer
doesn't provide any benefit. Therefore remove this call.

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

index 8b3a28739d9a18ed60b91db2396214ca8c2e7a21..1029bd2ff5f104337198b22e895ac38454c2e119 100644 (file)
@@ -331,8 +331,6 @@ static int fsl_espi_trans(struct spi_message *m, struct spi_transfer *trans)
        if (trans->delay_usecs)
                udelay(trans->delay_usecs);
 
-       fsl_espi_setup_transfer(spi, NULL);
-
        if (!ret)
                fsl_espi_copy_from_buf(m, mspi);