Message ID | 20250204024600.4138776-2-jthies@google.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | usb: typec: ucsi: Recover from CrOS EC sysjump | expand |
Hi Jameson, On Tue, Feb 04, 2025 at 02:45:58AM +0000, Jameson Thies wrote: > Update cros_ec_commands.h to include a definition for PD_EVENT_INIT. > On platforms supporting UCSI, this host event type is sent when the PPM > initializes. > > Signed-off-by: Jameson Thies <jthies@google.com> Reviewed-by: Benson Leung <bleung@chromium.org> > --- > include/linux/platform_data/cros_ec_commands.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h > index ecf290a0c98f..1f4e4f2b89bb 100644 > --- a/include/linux/platform_data/cros_ec_commands.h > +++ b/include/linux/platform_data/cros_ec_commands.h > @@ -5046,6 +5046,7 @@ struct ec_response_pd_status { > #define PD_EVENT_DATA_SWAP BIT(3) > #define PD_EVENT_TYPEC BIT(4) > #define PD_EVENT_PPM BIT(5) > +#define PD_EVENT_INIT BIT(6) > > struct ec_response_host_event_status { > uint32_t status; /* PD MCU host event status */ > -- > 2.48.1.362.g079036d154-goog >
On Tue, Feb 4, 2025 at 3:35 PM Benson Leung <bleung@google.com> wrote: > > Hi Jameson, > > On Tue, Feb 04, 2025 at 02:45:58AM +0000, Jameson Thies wrote: > > Update cros_ec_commands.h to include a definition for PD_EVENT_INIT. > > On platforms supporting UCSI, this host event type is sent when the PPM > > initializes. > > > > Signed-off-by: Jameson Thies <jthies@google.com> > > Reviewed-by: Benson Leung <bleung@chromium.org> > Reviewed-by: Łukasz Bartosik <ukaszb@chromium.org> > > --- > > include/linux/platform_data/cros_ec_commands.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h > > index ecf290a0c98f..1f4e4f2b89bb 100644 > > --- a/include/linux/platform_data/cros_ec_commands.h > > +++ b/include/linux/platform_data/cros_ec_commands.h > > @@ -5046,6 +5046,7 @@ struct ec_response_pd_status { > > #define PD_EVENT_DATA_SWAP BIT(3) > > #define PD_EVENT_TYPEC BIT(4) > > #define PD_EVENT_PPM BIT(5) > > +#define PD_EVENT_INIT BIT(6) > > > > struct ec_response_host_event_status { > > uint32_t status; /* PD MCU host event status */ > > -- > > 2.48.1.362.g079036d154-goog > >
On Tue, Feb 04, 2025 at 02:45:58AM +0000, Jameson Thies wrote: > Update cros_ec_commands.h to include a definition for PD_EVENT_INIT. > On platforms supporting UCSI, this host event type is sent when the PPM > initializes. > > Signed-off-by: Jameson Thies <jthies@google.com> Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h index ecf290a0c98f..1f4e4f2b89bb 100644 --- a/include/linux/platform_data/cros_ec_commands.h +++ b/include/linux/platform_data/cros_ec_commands.h @@ -5046,6 +5046,7 @@ struct ec_response_pd_status { #define PD_EVENT_DATA_SWAP BIT(3) #define PD_EVENT_TYPEC BIT(4) #define PD_EVENT_PPM BIT(5) +#define PD_EVENT_INIT BIT(6) struct ec_response_host_event_status { uint32_t status; /* PD MCU host event status */
Update cros_ec_commands.h to include a definition for PD_EVENT_INIT. On platforms supporting UCSI, this host event type is sent when the PPM initializes. Signed-off-by: Jameson Thies <jthies@google.com> --- include/linux/platform_data/cros_ec_commands.h | 1 + 1 file changed, 1 insertion(+)