diff options
author | Jameson Thies <jthies@google.com> | 2022-07-02 02:07:57 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-06 21:31:41 +0000 |
commit | a63f39313801dfbd4eeeeac4ec3b8cb8c59f0545 (patch) | |
tree | d3e4e9c8c5372660210800c14a01feedfbbceced /include/usb_pd.h | |
parent | f526613a6059a5164415b59754ef9a4b23416e59 (diff) | |
download | chrome-ec-a63f39313801dfbd4eeeeac4ec3b8cb8c59f0545.tar.gz |
TCPMV2: Gate Alert USB PD 3.1 fields on partner revision
Extended alert events were added in USB PD 3.1, but will currently be
sent to all USB PD 3.0 partners. This CL clears ADO fields added in USB
PD 3.1 before sending alerts to USB PD 3.0 partners. If clearing the
extended alert bits sets the ADO to 0, it will not send the alert.
BUG=b:237336333
BRANCH=None
TEST=Checked alert was not being sent to USB PD 3.0 parnter on power
state change, and passing all unit tests (make runhosttests).
Signed-off-by: Jameson Thies <jthies@google.com>
Change-Id: Ic6d9db0f0aff00b04e9c9ab892219bbcb6451f4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3741508
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index aaf365d389..4304c60c7a 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -1283,6 +1283,7 @@ enum pd_ext_msg_type { /* Alert Data Object fields for REV 3.1 */ #define ADO_EXTENDED_ALERT_EVENT (BIT(24) << 7) +#define ADO_EXTENDED_ALERT_EVENT_TYPE 0xf /* Alert Data Object fields for REV 3.0 */ #define ADO_OVP_EVENT (BIT(24) << 6) #define ADO_SOURCE_INPUT_CHANGE (BIT(24) << 5) |