All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tzung-Bi Shih <tzungbi@kernel.org>
To: "Łukasz Bartosik" <ukaszb@chromium.org>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Lee Jones <lee@kernel.org>, Benson Leung <bleung@chromium.org>,
	Guenter Roeck <groeck@chromium.org>,
	Abhishek Pandit-Subedi <abhishekpandit@chromium.org>,
	Pavan Holla <pholla@chromium.org>,
	linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev
Subject: Re: [PATCH v5 1/8] platform/chrome: Update ChromeOS EC header for UCSI
Date: Fri, 6 Sep 2024 08:44:12 +0000	[thread overview]
Message-ID: <ZtrA3FAKgXOm-FzE@google.com> (raw)
In-Reply-To: <20240903163033.3170815-2-ukaszb@chromium.org>

On Tue, Sep 03, 2024 at 04:30:26PM +0000, Łukasz Bartosik wrote:
> From: Pavan Holla <pholla@chromium.org>
> 
> Add EC host commands for reading and writing UCSI structures
> in the EC. The corresponding kernel driver is cros-ec-ucsi.
> 
> Also update PD events supported by the EC.
> 
> Signed-off-by: Pavan Holla <pholla@chromium.org>

It needs your S-o-b tag at the end.  See [1].

[1]: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#when-to-use-acked-by-cc-and-co-developed-by

> --- a/include/linux/platform_data/cros_ec_commands.h
> +++ b/include/linux/platform_data/cros_ec_commands.h
> @@ -5012,8 +5012,10 @@ struct ec_response_pd_status {
[...]
>  struct ec_response_host_event_status {
> -	uint32_t status;      /* PD MCU host event status */
> +	u32 status;      /* PD MCU host event status */

Even though ./scripts/checkpatch.pl dislikes it, but please don't do that.
The header is a re-import from EC's repo.  We should try not to be divergent
from the origin too much.

> +/*
> + * Read/write interface for UCSI OPM <-> PPM communication.
> + */

Same reason: it'd be better if it can align to [2].

[2]: https://crrev.com/1454f2e8dac20ca37428744345c1bb4fdec30255/include/ec_commands.h#8055

> +#define EC_CMD_UCSI_PPM_SET 0x0140
> +
> +/* The data size is stored in the host command protocol header. */
> +struct ec_params_ucsi_ppm_set {
> +	u16 offset;
> +	u8 data[];

Same for the u16 and u8.

> +struct ec_params_ucsi_ppm_get {
> +	u16 offset;
> +	u8 size;

Same here.

  reply	other threads:[~2024-09-06  8:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03 16:30 [PATCH v5 0/8] usb: typec: Implement UCSI driver for ChromeOS Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 1/8] platform/chrome: Update ChromeOS EC header for UCSI Łukasz Bartosik
2024-09-06  8:44   ` Tzung-Bi Shih [this message]
2024-09-06 13:01     ` Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 2/8] platform/chrome: Update EC feature flags Łukasz Bartosik
2024-09-06  8:44   ` Tzung-Bi Shih
2024-09-06 13:53     ` Łukasz Bartosik
2024-09-06 14:07       ` Greg Kroah-Hartman
2024-09-06 15:11         ` Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 3/8] usb: typec: ucsi: Implement ChromeOS UCSI driver Łukasz Bartosik
2024-09-05 11:23   ` Heikki Krogerus
2024-09-06 14:19   ` Heikki Krogerus
2024-09-06 15:19     ` Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 4/8] usb: typec: cros_ec_ucsi: Use complete instead of resume Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 5/8] usb: typec: cros_ec_ucsi: Add trace events Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 6/8] usb: typec: cros_ec_ucsi: Add netlink Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 7/8] mfd: cros_ec: Load cros_ec_ucsi on supported ECs Łukasz Bartosik
2024-09-03 16:30 ` [PATCH v5 8/8] mfd: cros_ec: Don't load charger with UCSI Łukasz Bartosik

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=ZtrA3FAKgXOm-FzE@google.com \
    --to=tzungbi@kernel.org \
    --cc=abhishekpandit@chromium.org \
    --cc=bleung@chromium.org \
    --cc=chrome-platform@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=groeck@chromium.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=lee@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pholla@chromium.org \
    --cc=ukaszb@chromium.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.