]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
spi: document CS setup, hold & inactive times in header
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 23 Oct 2019 07:00:46 +0000 (10:00 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 23 Oct 2019 16:48:57 +0000 (17:48 +0100)
This change documents the CS setup, host & inactive times. They were
omitted when the fields were added, and were caught by one of the build
bots.

Fixes: 25093bdeb6bc ("spi: implement SW control for CS times")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20191023070046.12478-1-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h

index c40d6af2bf07dd51e6d7fdb7777e0b8fccc2a6a2..98fe8663033af4534f9405655f177baab30d6251 100644 (file)
@@ -407,6 +407,11 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
  *          controller has native support for memory like operations.
  * @unprepare_message: undo any work done by prepare_message().
  * @slave_abort: abort the ongoing transfer request on an SPI slave controller
+ * @cs_setup: delay to be introduced by the controller after CS is asserted
+ * @cs_hold: delay to be introduced by the controller before CS is deasserted
+ * @cs_inactive: delay to be introduced by the controller after CS is
+ *     deasserted. If @cs_change_delay is used from @spi_transfer, then the
+ *     two delays will be added up.
  * @cs_gpios: LEGACY: array of GPIO descs to use as chip select lines; one per
  *     CS number. Any individual value may be -ENOENT for CS lines that
  *     are not GPIOs (driven by the SPI controller itself). Use the cs_gpiods