aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorbayi cheng <[email protected]>2022-11-14 16:13:27 +0800
committerMark Brown <[email protected]>2022-11-14 11:48:51 +0000
commitd52a826b40604387d3e24b54e12e404867902fbb (patch)
treef331b01b595352e94a06be5fd1add02131bfdbb9 /tools/testing/selftests/bpf/progs/test_autoload.c
parent6c6871cdaef96361f6b79a3e45d451a6475df4d6 (diff)
spi: spi-mtk-nor: Optimize timeout for dma read
The timeout value of the current dma read is unreasonable. For example, If the spi flash clock is 26Mhz, It will takes about 1.3ms to read a 4KB data in spi mode. But the actual measurement exceeds 50s when a dma read timeout is encountered. In order to be more accurately, It is necessary to use usecs_to_jiffies, After modification, the measured timeout value is about 130ms. Signed-off-by: bayi cheng <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions