]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10a4bd1377693cb6907b7b30d09489315c9f7dc8
tree5c90efffcbf10fbc74cdfe2f226fa62681d5914a
parent2b2c3c27d6527c1b323502a9dc6341b5a1897bc4
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