* [PATCH] platform/chrome: cros_ec: remove reference to nonexistent CONFIG_SLEEP_TIMEOUT_MS
@ 2026-06-16 0:14 Ethan Nelson-Moore
2026-06-16 1:39 ` Tzung-Bi Shih
0 siblings, 1 reply; 2+ messages in thread
From: Ethan Nelson-Moore @ 2026-06-16 0:14 UTC (permalink / raw)
To: Guenter Roeck, Tzung-Bi Shih, Gwendal Grignou, Jonathan Cameron,
Sung-Chi Li, chrome-platform
Cc: Ethan Nelson-Moore, Benson Leung
A comment in <linux/platform_data/cros_ec_commands.h> refers to
CONFIG_SLEEP_TIMEOUT_MS, which has never existed in the kernel. Simply
remove this reference, as the default timeout is defined immediately
below the comment.
Discovered while searching for CONFIG_* symbols referenced in code but
not defined in any Kconfig file.
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
include/linux/platform_data/cros_ec_commands.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h
index 749d985e9da2..3c0b9dff80b3 100644
--- a/include/linux/platform_data/cros_ec_commands.h
+++ b/include/linux/platform_data/cros_ec_commands.h
@@ -4368,8 +4368,7 @@ struct ec_params_host_sleep_event {
} __ec_align1;
/*
- * Use a default timeout value (CONFIG_SLEEP_TIMEOUT_MS) for detecting sleep
- * transition failures
+ * Use a default timeout value for detecting sleep transition failures
*/
#define EC_HOST_SLEEP_TIMEOUT_DEFAULT 0
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] platform/chrome: cros_ec: remove reference to nonexistent CONFIG_SLEEP_TIMEOUT_MS
2026-06-16 0:14 [PATCH] platform/chrome: cros_ec: remove reference to nonexistent CONFIG_SLEEP_TIMEOUT_MS Ethan Nelson-Moore
@ 2026-06-16 1:39 ` Tzung-Bi Shih
0 siblings, 0 replies; 2+ messages in thread
From: Tzung-Bi Shih @ 2026-06-16 1:39 UTC (permalink / raw)
To: Ethan Nelson-Moore
Cc: Guenter Roeck, Gwendal Grignou, Jonathan Cameron, Sung-Chi Li,
chrome-platform, Benson Leung
On Mon, Jun 15, 2026 at 05:14:07PM -0700, Ethan Nelson-Moore wrote:
> A comment in <linux/platform_data/cros_ec_commands.h> refers to
> CONFIG_SLEEP_TIMEOUT_MS, which has never existed in the kernel. Simply
> remove this reference, as the default timeout is defined immediately
> below the comment.
>
> Discovered while searching for CONFIG_* symbols referenced in code but
> not defined in any Kconfig file.
Thanks for the patch.
NACK. This file is intended to stay in sync with the EC firmware header[1].
While the CONFIG_SLEEP_TIMEOUT_MS is indeed unfortunate for a non-Kconfig
macro in the kernel, we have historically kept it for consistency with the
firmware code[2]."
[1] https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/ec_commands.h#5248
[2] https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/config.h#7178
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-16 1:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-16 0:14 [PATCH] platform/chrome: cros_ec: remove reference to nonexistent CONFIG_SLEEP_TIMEOUT_MS Ethan Nelson-Moore
2026-06-16 1:39 ` 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