Files
u-boot/drivers
Ronald Wahl 3d729838b3 spi: cadence-quadspi: fix potential malfunction after ~49 days uptime
The get_timer function returns an unsigned long which may be calculated
from the ARM system counter. This counter is reset only on a cold reset.
U-boot divides this counter down to a 1000 Hz counter that will cross
the 32bit barrier after a bit more than 49 days. Assigning the value to
an unsigned int will truncate it on 64bit systems.
Passing this truncated value back to the get_timer function will return
a very large value that is certainly larger than the timeout and so will
go down the error path and besides stopping U-Boot will lead to messages
like

    "SPI: QSPI is still busy after poll for 5000 ms."

Signed-off-by: Ronald Wahl <ronald.wahl@legrand.com>
Cc: Vignesh R <vigneshr@ti.com>
Cc: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
2025-01-22 11:21:58 -06:00
..
2025-01-20 19:26:54 -06:00
2024-10-11 11:44:48 -06:00
2024-12-07 09:07:04 -03:00
2024-12-24 18:07:53 +01:00
2024-12-23 08:10:15 -03:00
2024-11-20 17:57:58 +01:00
2024-12-11 08:36:24 +01:00
2024-10-11 11:44:48 -06:00
2025-01-20 19:26:54 -06:00
2025-01-20 19:26:54 -06:00
2024-12-25 22:31:04 -06:00
2024-12-25 22:31:04 -06:00
2024-10-11 11:44:48 -06:00
2024-10-11 11:44:48 -06:00
2024-12-25 22:31:04 -06:00
2024-10-11 11:44:48 -06:00
2025-01-20 19:26:54 -06:00