[PATCH 0/3] firmware: arm_scmi: clock: make more robust
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Mar 25 04:42:45 PDT 2026
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
More information about the barebox
mailing list