]> git.baikalelectronics.ru Git - kernel.git/commit
spi: imx: Use dynamic bursts only when bits_per_word is 8, 16 or 32
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 17 Jul 2018 14:31:51 +0000 (16:31 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 24 Jul 2018 14:58:24 +0000 (15:58 +0100)
commit57b298c37711fd3e00688025b76363f7b643e072
treeeffe1241e2060a52a32396847b4dddb5a2005515
parent666c0e48f90fa6c14eea951dcfbcc6fd7c3815d9
spi: imx: Use dynamic bursts only when bits_per_word is 8, 16 or 32

The dynamic bursts mode allows to group together multiple words into a
single burst. To do so, it's necessary that words can be packed into the
32-bits FIFO entries, so we can't allow using this mode with bit_per_words
different to 8, 16 or 32.

This prevents shitfing out extra clock ticks for transfers with
bit_per_word values not aligned on 8 bits.

With that , we are sure that only the correct number of bits is
shifted out at each transfer, so we don't need to mask out the remaining
parts of the words.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c