* [PATCH] platform/chrome: lightbar: Fix lightbar_program_ex alignment
@ 2026-02-02 10:06 Gwendal Grignou
2026-02-02 13:10 ` Tzung-Bi Shih
0 siblings, 1 reply; 2+ messages in thread
From: Gwendal Grignou @ 2026-02-02 10:06 UTC (permalink / raw)
To: tzungbi; +Cc: chrome-platform, Gwendal Grignou
Make sure sub-command of lightbar command starts with a 8bit
parameter to ensure alignment.
Fixes: 9600b8bdbfe4 ("platform/chrome: lightbar: Add support for large sequence")
Signed-off-by: Gwendal Grignou <gwendal@google.com>
---
include/linux/platform_data/cros_ec_commands.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h
index 144243143034..16e779daad26 100644
--- a/include/linux/platform_data/cros_ec_commands.h
+++ b/include/linux/platform_data/cros_ec_commands.h
@@ -2026,8 +2026,8 @@ struct lightbar_program {
* EC RAM.
*/
struct lightbar_program_ex {
- uint16_t offset;
uint8_t size;
+ uint16_t offset;
uint8_t data[0];
} __ec_todo_unpacked;
--
2.53.0.rc1.225.gd81095ad13-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/chrome: lightbar: Fix lightbar_program_ex alignment
2026-02-02 10:06 [PATCH] platform/chrome: lightbar: Fix lightbar_program_ex alignment Gwendal Grignou
@ 2026-02-02 13:10 ` Tzung-Bi Shih
0 siblings, 0 replies; 2+ messages in thread
From: Tzung-Bi Shih @ 2026-02-02 13:10 UTC (permalink / raw)
To: Gwendal Grignou; +Cc: chrome-platform, Gwendal Grignou
On Mon, Feb 02, 2026 at 02:06:21AM -0800, Gwendal Grignou wrote:
> Make sure sub-command of lightbar command starts with a 8bit
> parameter to ensure alignment.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[1/1] platform/chrome: lightbar: Fix lightbar_program_ex alignment
commit: ff6ff0f950066fb84a6d9358614d18d7280d1b6a
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-02 13:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02 10:06 [PATCH] platform/chrome: lightbar: Fix lightbar_program_ex alignment Gwendal Grignou
2026-02-02 13:10 ` Tzung-Bi Shih
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox