]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
spi: imx: dynamic burst length adjust for PIO mode
authorJiada Wang <jiada_wang@mentor.com>
Mon, 1 May 2017 10:31:44 +0000 (03:31 -0700)
committerMark Brown <broonie@kernel.org>
Sun, 14 May 2017 10:06:33 +0000 (19:06 +0900)
commit8d4a6cad7adb3ddac32cd52635f20e11de11a658
tree74b539d8170215d137dd085a83595800d92cffce
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
spi: imx: dynamic burst length adjust for PIO mode

previously burst length (BURST_LENGTH) is always set to equal
to bits_per_word, causes a 10us gap between each word in
transfer, which significantly affects performance.

This patch uses 32 bits transfer to simulate lower bits transfer,
and adjusts burst length runtimely to use biggeest burst length
as possible to reduce the gaps in transfer for PIO mode.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c