]> git.baikalelectronics.ru Git - kernel.git/commit
spi: tegra210-quad: Add support for hardware dummy cycles transfer
authorSowjanya Komatineni <skomatineni@nvidia.com>
Mon, 21 Dec 2020 21:17:36 +0000 (13:17 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 6 Jan 2021 13:09:32 +0000 (13:09 +0000)
commit20d2b5362e0878dd5f82ec6eef5feee4fea54429
treefd74cf139e5246317b9776bd658448116f92bfa0
parent65cada973d94a0217ddc3663a7e2dfb6573d5105
spi: tegra210-quad: Add support for hardware dummy cycles transfer

Tegra Quad SPI controller hardware supports sending dummy bytes based
on programmed dummy clock cycles after the actual transfer bytes.

This patch adds this support of hardware dummy bytes transfer and
skips transfer of dummy bytes from the software.

For dummy cycles more than Tegra Quad SPI hardware maximum dummy
cycles limit, driver transfers dummy bytes from the software.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Link: https://lore.kernel.org/r/1608585459-17250-7-git-send-email-skomatineni@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra210-quad.c