OSDN Git Service

spi: spi-fsl-dspi: Move invariant configs out of dspi_transfer_one_message
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 18 Mar 2020 00:16:00 +0000 (02:16 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 18 Mar 2020 22:45:00 +0000 (22:45 +0000)
commit5b342c5ab7cde6c543faf46e30bb501feaa2e435
tree5c90efffcbf10fbc74cdfe2f226fa62681d5914a
parent826b3a6a34619b934cdc33eeb961fcb99ce92c09
spi: spi-fsl-dspi: Move invariant configs out of dspi_transfer_one_message

The operating mode (DMA, XSPI, EOQ) is not going to change across the
lifetime of the device. So it makes no sense to keep writing to SPI_RSER
on each message. Move this configuration to dspi_init instead.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20200318001603.9650-10-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c