[PATCH 0/3] PBL: enable timeouts in read_poll_timeout macros

Stefan Kerkmann s.kerkmann at pengutronix.de
Tue Jan 21 08:49:25 PST 2025


Without a time source the read_poll_timeout functions will deadlock in the PBL
if the break condition is never met. This series introduces the necessary
timing functions in the PBL for ARMv7 and ARMv8 based on the ARM architected
timer and enable their usage if available.

Signed-off-by: Stefan Kerkmann <s.kerkmann at pengutronix.de>
---
Stefan Kerkmann (3):
      ARM64: lib64: pbl: implement get_time_ns and is_timeout
      ARM: lib32: pbl: implement get_time_ns and is_timeout
      pbl: introduce HAS_PBL_CLOCKSOURCE marker

 arch/arm/cpu/Kconfig                   |  2 ++
 arch/arm/lib32/Makefile                |  2 +-
 arch/arm/lib32/arm_architected_timer.c | 15 ++++++++++++++-
 arch/arm/lib64/pbl.c                   | 17 +++++++++++++++--
 include/linux/iopoll.h                 |  8 ++++----
 pbl/Kconfig                            |  3 +++
 6 files changed, 39 insertions(+), 8 deletions(-)
---
base-commit: 5acd59882f02d8f8da002b939756c1739d917ac2
change-id: 20250121-feature-pbl-get-time-ns-6d9e8874d582

Best regards,
-- 
Stefan Kerkmann <s.kerkmann at pengutronix.de>




More information about the barebox mailing list