From: Benson Leung <bleung@google.com>
To: Daniel Balint <dbalint@google.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
Benson Leung <bleung@chromium.org>, Lee Jones <lee@kernel.org>,
Tzung-Bi Shih <tzungbi@kernel.org>,
linux-iio@vger.kernel.org, chrome-platform@lists.linux.dev,
mfd@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/3] platform/chrome: cros_ec: fix alignment of ec_params_pwrmon
Date: Sat, 7 Nov 2026 23:53:33 +0000 [thread overview]
Message-ID: <au-5_dDwdf0j7kDi@google.com> (raw)
In-Reply-To: <20261106193129.43493-2-dbalint@google.com>
[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]
On Fri, Nov 06, 2026 at 07:31:15PM +0000, Daniel Balint wrote:
> Sync EC_CMD_PWRMON structure padding with ChromeOS EC firmware by adding
> explicit reserved padding to struct ec_params_pwrmon (2-byte union
> alignment) and struct pwrmon_dump_info (4-byte struct size alignment),
> as __ec_align2 and __ec_align4 expand to __packed in Linux.
>
> Fixes: b57af7f8d194 ("platform/chrome: cros_ec: Sync host command header with EC")
> Signed-off-by: Daniel Balint <dbalint@google.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
> ---
> include/linux/platform_data/cros_ec_commands.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h
> index a7bd69d83522..6d74371c7074 100644
> --- a/include/linux/platform_data/cros_ec_commands.h
> +++ b/include/linux/platform_data/cros_ec_commands.h
> @@ -6635,6 +6635,7 @@ enum ec_pwrmon_cmd {
>
> struct ec_params_pwrmon {
> uint8_t cmd;
> + uint8_t reserved;
> union {
> uint16_t set_rate;
> uint8_t channel_id;
> @@ -6651,6 +6652,7 @@ struct ec_params_pwrmon {
> struct pwrmon_dump_info {
> uint8_t channel_id;
> char channel_name[32];
> + uint8_t reserved[3];
> } __ec_align4;
>
> struct ec_response_pwrmon {
> --
> 2.56.0.455.g6c5a503b38-goog
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-11-07 23:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 19:31 [PATCH v1 0/3] Introduce cros_ec power monitoring Daniel Balint
2026-11-06 19:31 ` [PATCH v1 1/3] platform/chrome: cros_ec: fix alignment of ec_params_pwrmon Daniel Balint
2026-11-07 23:53 ` Benson Leung [this message]
2026-11-06 19:31 ` [PATCH v1 2/3] iio: adc: add cros_ec_pwrmon driver Daniel Balint
2026-11-07 1:25 ` Jonathan Cameron
2026-11-06 19:31 ` [PATCH v1 3/3] mfd: cros_ec: load cros_ec_pwrmon on supported ECs Daniel Balint
2026-11-07 1:03 ` [PATCH v1 0/3] Introduce cros_ec power monitoring Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=au-5_dDwdf0j7kDi@google.com \
--to=bleung@google.com \
--cc=bleung@chromium.org \
--cc=chrome-platform@lists.linux.dev \
--cc=dbalint@google.com \
--cc=jic23@kernel.org \
--cc=lee@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=tzungbi@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®