]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/chrome: lightbar: Optimize command size
authorGwendal Grignou <gwendal@chromium.org>
Wed, 4 Feb 2026 03:50:36 +0000 (19:50 -0800)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 23 Feb 2026 07:34:17 +0000 (15:34 +0800)
commit286386820d524a76647b8a1de9e4122270da6975
tree926a285fbd2bf7710d4f8fa26d80b2ba3459e385
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
platform/chrome: lightbar: Optimize command size

Enabling tracing with:
echo 1 > /sys/kernel/debug/tracing/events/cros_ec/cros_ec_request_start/enable

To monitor the command and response size. The defaults are 194 and 128 respectively:
cros_ec_request_start: version: 0, offset: 0, command: EC_CMD_LIGHTBAR_CMD, outsize: 194, insize: 128

Reduce the sizes to the expected subcommands.

Signed-off-by: Gwendal Grignou <gwendal@google.com>
Link: https://lore.kernel.org/r/20260204035036.697955-1-gwendal@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lightbar.c