Alexandru Ardelean
b2c98153f4
spi: introduce spi_delay struct as "value + unit" & spi_delay_exec()
...
There are plenty of delays that have been introduced in SPI core. Most of
them are in micro-seconds, some need to be in nano-seconds, and some in
clock-cycles.
For some of these delays (related to transfers & CS timing) it may make
sense to have a `spi_delay` struct that abstracts these a bit.
The important element of these delays [for unification] seems to be the
`unit` of the delay.
It looks like micro-seconds is good enough for most people, but every-once
in a while, some delays seem to require other units of measurement.
This change adds the `spi_delay` struct & a `spi_delay_exec()` function
that processes a `spi_delay` object/struct to execute the delay.
It's a copy of the `cs_change_delay` mechanism, but without the default
for 10 uS.
The clock-cycle delay unit is a bit special, as it needs to be bound to an
`spi_transfer` object to execute.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com >
Link: https://lore.kernel.org/r/20190926105147.7839-3-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2019-10-15 11:41:25 +01:00
..
2019-08-02 12:15:43 +01:00
2018-04-23 15:48:18 +01:00
2019-09-17 16:22:26 -07:00
2019-09-16 15:52:38 -07:00
2019-09-04 17:14:50 +01:00
2019-09-04 17:15:09 +01:00
2019-05-08 17:45:26 +09:00
2019-09-04 17:15:29 +01:00
2019-10-01 12:33:39 +01:00
2019-05-30 11:26:37 -07:00
2019-09-04 17:15:49 +01:00
2019-09-04 17:16:47 +01:00
2019-08-02 12:15:43 +01:00
2019-09-15 10:32:06 +01:00
2019-09-04 17:16:08 +01:00
2019-09-15 10:32:04 +01:00
2019-06-19 17:09:09 +02:00
2017-11-02 11:10:55 +01:00
2019-06-10 18:52:53 +01:00
2019-06-19 17:09:09 +02:00
2019-07-31 14:13:13 -06:00
2019-09-04 17:17:07 +01:00
2019-09-04 17:17:27 +01:00
2019-05-21 10:50:45 +02:00
2016-07-24 21:54:29 +01:00
2017-11-02 11:10:55 +01:00
2019-09-04 17:17:36 +01:00
2019-09-04 17:17:56 +01:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:10 +02:00
2019-06-05 17:36:37 +02:00
2019-10-01 12:33:19 +01:00
2019-10-01 18:40:38 +01:00
2019-10-01 12:32:56 +01:00
2018-10-11 15:11:04 +01:00
2019-08-02 12:15:43 +01:00
2019-08-02 12:15:43 +01:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:24:26 +01:00
2019-05-30 11:26:32 -07:00
2019-10-08 11:50:23 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-28 14:10:41 +01:00
2019-10-08 19:12:28 +01:00
2019-10-08 19:12:28 +01:00
2019-08-28 14:10:41 +01:00
2019-05-30 11:26:32 -07:00
2019-09-04 17:18:25 +01:00
2019-10-08 19:12:28 +01:00
2019-06-05 17:37:15 +02:00
2019-03-15 17:06:34 +00:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:45 +02:00
2019-10-01 12:34:18 +01:00
2019-07-31 14:13:13 -06:00
2019-05-30 11:26:37 -07:00
2019-09-04 17:18:35 +01:00
2019-04-08 14:06:51 +07:00
2019-09-04 17:18:55 +01:00
2019-09-04 17:19:14 +01:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:16 +02:00
2019-05-30 11:26:32 -07:00
2019-10-01 12:34:38 +01:00
2019-09-04 17:19:34 +01:00
2019-10-08 19:12:28 +01:00
2019-09-04 17:19:54 +01:00
2019-09-05 18:19:45 +01:00
2019-10-09 18:20:16 +01:00
2019-08-02 12:15:43 +01:00
2019-09-04 17:20:33 +01:00
2019-05-30 11:26:37 -07:00
2019-10-09 18:19:16 +01:00
2015-09-17 12:33:58 +01:00
2019-09-26 08:23:21 -07:00
2019-09-04 17:20:52 +01:00
2019-08-02 12:15:43 +01:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2019-08-02 12:14:23 +01:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:21:12 +01:00
2019-07-04 17:35:07 +01:00
2019-09-04 17:21:21 +01:00
2019-06-10 18:52:53 +01:00
2019-05-02 10:38:44 +09:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:21:31 +01:00
2018-05-17 13:27:08 +09:00
2019-05-30 11:26:37 -07:00
2019-02-08 13:04:19 +00:00
2019-08-07 14:24:47 +01:00
2019-06-19 17:09:55 +02:00
2019-08-02 12:15:43 +01:00
2019-09-04 17:21:41 +01:00
2019-09-04 17:22:00 +01:00
2019-10-01 12:34:58 +01:00
2018-10-03 16:23:10 +01:00
2017-05-26 13:12:04 +01:00
2019-07-26 12:24:47 +01:00
2019-08-02 12:15:43 +01:00
2019-09-04 17:22:10 +01:00
2019-10-04 18:47:21 +01:00
2019-05-02 10:38:41 +09:00
2019-09-04 17:22:29 +01:00
2019-09-04 17:22:49 +01:00
2019-08-02 12:15:43 +01:00
2019-09-04 17:22:58 +01:00
2019-05-30 11:29:52 -07:00
2019-06-10 18:52:53 +01:00
2019-05-30 11:26:37 -07:00
2019-08-02 12:15:43 +01:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2016-08-18 19:10:39 +01:00
2019-09-15 10:32:06 +01:00
2019-05-30 11:25:18 -07:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:23:28 +01:00
2019-10-01 12:35:18 +01:00
2019-09-04 17:24:07 +01:00
2019-09-04 17:23:48 +01:00
2019-10-15 11:41:25 +01:00
2019-09-25 09:46:23 -07:00