]> git.baikalelectronics.ru Git - kernel.git/commit
spi: tegra114: change format for `spi_set_cs_timing()` function
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 26 Sep 2019 10:51:42 +0000 (13:51 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 15 Oct 2019 10:45:49 +0000 (11:45 +0100)
commit871379b5a6a80c3eae637f683f3281fdb0029d92
tree4b28c763ded1dc5f7fce400c69bf78f5eb865ac0
parentbb62c3f3f3dfa8b732b6a6cb5c8c1fc842ce5a1a
spi: tegra114: change format for `spi_set_cs_timing()` function

The initial version of `spi_set_cs_timing()` was implemented with
consideration only for clock-cycles as delay.

For cases like `CS setup` time, it's sometimes needed that micro-seconds
(or nano-seconds) are required, or sometimes even longer delays, for cases
where the device needs a little longer to start transferring that after CS
is asserted.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20190926105147.7839-15-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra114.c
drivers/spi/spi.c
include/linux/spi/spi.h