From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 0/3] firmware: arm_scmi: clock: make more robust
Date: Wed, 25 Mar 2026 12:42:45 +0100 [thread overview]
Message-ID: <20260325114753.2249763-1-a.fatoum@pengutronix.de> (raw)
barebox on the STM32MP15 lxa-mc1 with SCMI over SMC was completely
silent when used with TF-A v2.14, which is an abysmal user experience.
Improve upon this a bit:
- If SCMI clocks fail with -EPROTO in serial driver probes, swallow
the error and just disallow further clock operations to allow
user to reach an interactive shell with just CONFIG_DEBUG_LL
- Sync the driver with Linux and add an Origin-URL to make future
diffs and syncs easier
The first change was only done to drivers that actually check
clk_enable, which happens to include STM32MP, AM62L and RK35xx, which are
the only platforms currently supported by barebox that make use of
SCMI clock protocol over SMC.
The actual fix has been posted separately for inclusion into master:
https://lore.barebox.org/barebox/20260325113711.2163037-1-a.fatoum@pengutronix.de/T/#u
Ahmad Fatoum (3):
serial: introduce clk_get_enabled_for_console()
clk: ignore -EPROTO in clk_get_enabled_if_available
firmware: arm_scmi: clock: sync with Linux v7.0
drivers/clk/clk-scmi.c | 285 ++++++++++++++++-----
drivers/firmware/arm_scmi/clock.c | 397 ++++++++++++++++++++++++------
drivers/serial/serial_lpuart.c | 12 +-
drivers/serial/serial_lpuart32.c | 12 +-
drivers/serial/serial_ns16550.c | 9 +-
drivers/serial/serial_stm32.c | 10 +-
include/console.h | 15 ++
include/linux/clk.h | 28 +++
include/linux/scmi_protocol.h | 30 ++-
9 files changed, 612 insertions(+), 186 deletions(-)
--
2.47.3
next reply other threads:[~2026-03-25 11:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 11:42 Ahmad Fatoum [this message]
2026-03-25 11:42 ` [PATCH 1/3] serial: introduce clk_get_enabled_for_console() Ahmad Fatoum
2026-03-25 11:42 ` [PATCH 2/3] clk: ignore -EPROTO in clk_get_enabled_if_available Ahmad Fatoum
2026-03-25 11:42 ` [PATCH 3/3] firmware: arm_scmi: clock: sync with Linux v7.0 Ahmad Fatoum
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=20260325114753.2249763-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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