diff options
author | Diana Z <dzigterman@chromium.org> | 2019-03-06 11:40:27 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-18 19:51:29 -0700 |
commit | f8206fabf1cefaccd4e4393588ae2e3613bfb97d (patch) | |
tree | d2270e5024e8641911fe54e68ea62be32cad81bf /include/task.h | |
parent | 8fce0a9a7d19f040feaec666c58b2c0871db7fc9 (diff) | |
download | chrome-ec-f8206fabf1cefaccd4e4393588ae2e3613bfb97d.tar.gz |
USB PD: Re-discover port partner when a contract was in place
When the pd_task starts up with an explicit contract previously in
place, re-check the partner's identity. This will happen automatically
when we EC reset into RO since pd_chipset_startup sets the flag, but for
a RO->RW jump the flag needs to be set again.
Additionally, exit DP modes before sysjumping, in order to not confuse
the port partner with a second enter mode when it had previously been
in that mode.
BUG=b:125552060
BRANCH=octopus
TEST=on unlocked octopus board, plugged in powered HDMI dongle from
hibernate state and confirmed display worked after RO->RW jump. Also
turned off software sync and confirmed console "sysjump" worked.
Change-Id: Idcde6f04deeb8f409a9b4d0a4b3fc924bdb644c7
Signed-off-by: Diana Z <dzigterman@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1506434
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/task.h')
-rw-r--r-- | include/task.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/task.h b/include/task.h index 46a340b898..32e62a8384 100644 --- a/include/task.h +++ b/include/task.h @@ -14,7 +14,10 @@ /* Task event bitmasks */ /* Tasks may use the bits in TASK_EVENT_CUSTOM for their own events */ -#define TASK_EVENT_CUSTOM(x) (x & 0x0001ffff) +#define TASK_EVENT_CUSTOM(x) (x & 0x0000ffff) + +/* Used to signal that sysjump preparation has completed */ +#define TASK_EVENT_SYSJUMP_READY BIT(16) /* Used to signal that IPC layer is available for sending new data */ #define TASK_EVENT_IPC_READY BIT(17) |