[PATCH] spi: atmel: Prevent false timeouts on long transfers

Mark Brown broonie at kernel.org
Fri Jun 16 07:20:27 PDT 2023


On Fri, Jun 16, 2023 at 04:12:25PM +0200, Miquel Raynal wrote:

> -#define SPI_DMA_TIMEOUT		(msecs_to_jiffies(1000))
> +#define SPI_DMA_MIN_TIMEOUT	(msecs_to_jiffies(1000))
> +#define SPI_DMA_TIMEOUT_PER_10K	(msecs_to_jiffies(4))

Given that we know the bus speed can't we just calculate this like other
drivers do (we should probably add a helper TBH)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230616/fd691d65/attachment.sig>


More information about the linux-arm-kernel mailing list