]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit8105936684681195d9073880b06a123b2e316811
tree4b28c763ded1dc5f7fce400c69bf78f5eb865ac0
parent8e319dd5f1ebbc1fffa9e550b2a643cbce7515b1
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