mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] firmware: arm_scmi: clock: make more robust
@ 2026-03-25 11:42 Ahmad Fatoum
  2026-03-25 11:42 ` [PATCH 1/3] serial: introduce clk_get_enabled_for_console() Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2026-03-25 11:42 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-25 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-25 11:42 [PATCH 0/3] firmware: arm_scmi: clock: make more robust Ahmad Fatoum
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox