]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit2801b2f5fad3d1e9ea0ac8484584051071065645
treeeffe1241e2060a52a32396847b4dddb5a2005515
parenta021cac420f8a3bd1c36c91af9dd3143c44101d7
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