diff options
author | Bastien Curutchet <bastien.curutchet@bootlin.com> | 2024-08-28 08:31:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-28 14:38:02 +0200 |
commit | 2fe6102bf01a5f4f48f211c2e5c8a274342fccb1 (patch) | |
tree | e3ee95ef5653013ecf71750e89ae57088b3477bc /crypto/lz4hc.c | |
parent | spi: bcmbca-hsspi: Simpify resource lookup (diff) | |
download | linux-2fe6102bf01a5f4f48f211c2e5c8a274342fccb1.tar.xz linux-2fe6102bf01a5f4f48f211c2e5c8a274342fccb1.zip |
spi: davinci: Adapt transfer's timeout to transfer's length
The timeout used when waiting for transfer's completion is always set to
HZ. This isn't enough if a transfer is too large or if the bus speed is
too low.
Use the bus speed and the transfer length to calculate an appropriate
timeout
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Link: https://patch.msgid.link/20240828063131.10507-1-bastien.curutchet@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'crypto/lz4hc.c')
0 files changed, 0 insertions, 0 deletions