mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 10:00:51 +00:00
pd: before sysjump send soft reset and then disable PD comms
Before sysjump we need to send a soft reset to any attached devices and then disable PD communication so that we don't re-negotiate again before the sysjump. This will guarantee expected message ID is cleared for after the sysjump. This also moves executing soft reset from before sending the soft reset command to after the port partner accepts a soft reset. BUG=none BRANCH=samus TEST=test on samus. without this change, when sysjumping the PD MCU has time to re-negotiate (at least partially) before the sysjump, which causes various problems. with this change, when sysjumping, the PD MCU sends soft reset, and then does not send anything else. Change-Id: Id7a60c62c8908ee4ab33dfbe995ef136b0aa83de Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/233751
This commit is contained in:
committed by
chrome-internal-fetch
parent
3c780a915c
commit
8bb26a29b0
@@ -1168,6 +1168,8 @@ void pd_ping_enable(int port, int enable);
|
||||
/* Issue PD soft reset */
|
||||
void pd_soft_reset(void);
|
||||
|
||||
/* Prepare PD communication for sysjump */
|
||||
void pd_prepare_sysjump(void);
|
||||
|
||||
/**
|
||||
* Signal power request to indicate a charger update that affects the port.
|
||||
|
||||
Reference in New Issue
Block a user