[PATCH RESEND] soc: ti: Allow room for the external wakeup name terminator
From: Anggara Putra
Date: Sun Dec 06 2026 - 08:21:59 EST
pm33xx prints the RTC wakeup source with %s. The ten characters
in "Ext wakeup" fill the src array, leaving no room for the
terminating NUL. Reserve one more byte in src.
OpenAI Codex assisted with the patch, commit message, and local tests
using the public KSPP compiler diagnostics.
Fixes: 5a99ae0092fe ("soc: ti: pm33xx: AM437X: Add rtc_only with ddr in
self-refresh support")
Link: https://github.com/KSPP/linux/issues/380
Signed-off-by: Anggara Putra <anggaraputra87.ap@xxxxxxxxx>
---
The TI pm33xx and wkup_m3_ipc objects built for ARM. In the
rebuilt pm33xx object, rtc_ext_wakeup.src contains "Ext wakeup"
and its terminating NUL within the 11-byte field.
The RTC wakeup path was not exercised on TI hardware.
include/linux/wkup_m3_ipc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/wkup_m3_ipc.h b/include/linux/wkup_m3_ipc.h
index 5e1b26f..087d6b0 100644
--- a/include/linux/wkup_m3_ipc.h
+++ b/include/linux/wkup_m3_ipc.h
@@ -44,7 +44,7 @@ struct wkup_m3_ipc {
struct wkup_m3_wakeup_src {
int irq_nr;
- char src[10];
+ char src[11];
};
struct wkup_m3_scale_data_header {