The way the max delay is computed for this controller, it looks like it is searching for the max delay from an SPI message a using that. No idea if this is valid. But this change should support both `delay_usecs` and the new `delay` data which is of `spi_delay` type.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -103,6 +103,7 @@ struct spi_delay { · 102 unmodified lines | |||
| 103 | u8 unit; | 103 | u8 unit; |
| 104 | }; | 104 | }; |
| 105 | 105 | ||
| 106 | extern int spi_delay_to_ns(struct spi_delay *_delay, struct spi_transfer *xfer); | ||
| 106 | extern int spi_delay_exec(struct spi_delay *_delay, struct spi_transfer *xfer); | 107 | extern int spi_delay_exec(struct spi_delay *_delay, struct spi_transfer *xfer); |
| 107 | 108 | ||
| 108 | /** | 109 | /** |