summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2022-07-19 10:43:58 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-19 09:03:50 +0000
commit3112d66701c5984a40343536fbf710fe9fa77748 (patch)
treea0a47857095634b9c79084b8c7f7a6195c9fa8da
parent27a8d5d45065533e2835ecbd435841c4dbb5c19a (diff)
downloadchrome-ec-3112d66701c5984a40343536fbf710fe9fa77748.tar.gz
corsola: set HPD level at DPStatus
Corsola skipped the post-config for HPD level, so we have to set HPD level pin to high when the DPStatus has informed. BUG=b:238170235 TEST=able to DP out when plug a hub with HDMI port attached. BRANCH=none Change-Id: I07c2d2fe9a64497b0b82bbd0fabdea6c47aab864 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3771680 Auto-Submit: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--zephyr/projects/corsola/src/usb_pd_policy.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/zephyr/projects/corsola/src/usb_pd_policy.c b/zephyr/projects/corsola/src/usb_pd_policy.c
index 9f4c4ee5ae..9643aefa23 100644
--- a/zephyr/projects/corsola/src/usb_pd_policy.c
+++ b/zephyr/projects/corsola/src/usb_pd_policy.c
@@ -181,14 +181,6 @@ __override int svdm_dp_attention(int port, uint32_t *payload)
}
}
- /* Its initial DP status message prior to config */
- if (!(dp_flags[port] & DP_FLAGS_DP_ON)) {
- if (lvl) {
- dp_flags[port] |= DP_FLAGS_HPD_HI_PENDING;
- }
- return 1;
- }
-
#ifdef CONFIG_USB_PD_DP_HPD_GPIO
if (irq && !lvl) {
/*