]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-axi: extend support for the `delay` field
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 26 Sep 2019 10:51:47 +0000 (13:51 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 15 Oct 2019 10:47:26 +0000 (11:47 +0100)
commit47543eaf11aff9567bb3d5f33af6342818bc751b
treef09658f7c237c4485d83f82628d35cb75ab412f2
parentdd1f11ef1a5695c2f8eae6a8069f4c8eada6df90
spi: spi-axi: extend support for the `delay` field

The AXI SPI engine driver uses the `delay_usecs` field from `spi_transfer`
to configure delays, which the controller will execute.
This change extends the logic to also include the `delay` value, in case it
is used (instead if `delay_usecs`).

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20190926105147.7839-20-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c