From: Stefan Kerkmann <s.kerkmann@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Subject: [PATCH 0/3] PBL: enable timeouts in read_poll_timeout macros
Date: Tue, 21 Jan 2025 17:49:25 +0100 [thread overview]
Message-ID: <20250121-feature-pbl-get-time-ns-v1-0-c3d493397846@pengutronix.de> (raw)
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@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@pengutronix.de>
next reply other threads:[~2025-01-21 16:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-21 16:49 Stefan Kerkmann [this message]
2025-01-21 16:49 ` [PATCH 1/3] ARM64: lib64: pbl: implement get_time_ns and is_timeout Stefan Kerkmann
2025-01-21 16:49 ` [PATCH 2/3] ARM: lib32: " Stefan Kerkmann
2025-01-21 16:49 ` [PATCH 3/3] pbl: introduce HAS_PBL_CLOCKSOURCE marker Stefan Kerkmann
2025-01-22 8:12 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250121-feature-pbl-get-time-ns-v1-0-c3d493397846@pengutronix.de \
--to=s.kerkmann@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox