summaryrefslogtreecommitdiff
path: root/board/cheza
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-11-01 15:02:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-11-07 20:27:00 -0800
commiteed2e9cfdfc0ebd660f9a30b3e6cb6bad7167a5c (patch)
treebf0ef715d9c3b86a60d1171bc4f8eaca63fd52af /board/cheza
parentc1eee8c5f4a98877657aa9de9d616d3c0ab18544 (diff)
downloadchrome-ec-eed2e9cfdfc0ebd660f9a30b3e6cb6bad7167a5c.tar.gz
cheza: Apply the fix to handle two or more HPD events
Apply the following fix to Cheza: http://crrev.com/c/388737 Some Type-C to DP adapters generate two or more HPD events while others generate only one HPD event. Currently hotplugging only works with the former adapter. Now hotplugging is triggered on one or more HPD events. BRANCH=none BUG=b:118838389 TEST=Plugged and unplugged a USB-C hub with HDMI port to port-0. Plugged and unplugged a HDMI monitor cable to the above hub. Checked the "typec 0" command showing proper results. Change-Id: If03e3db049fb3ba4de0f52b5084fd0457e3703d5 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1313473 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'board/cheza')
-rw-r--r--board/cheza/usb_pd_policy.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/board/cheza/usb_pd_policy.c b/board/cheza/usb_pd_policy.c
index fc95621c3d..1344bc9b1b 100644
--- a/board/cheza/usb_pd_policy.c
+++ b/board/cheza/usb_pd_policy.c
@@ -337,11 +337,6 @@ static int svdm_dp_attention(int port, uint32_t *payload)
const struct usb_mux *mux = &usb_muxes[port];
dp_status[port] = payload[1];
- if (!(dp_flags[port] & DP_FLAGS_DP_ON)) {
- if (lvl)
- dp_flags[port] |= DP_FLAGS_HPD_HI_PENDING;
- return 1;
- }
mux->hpd_update(port, lvl, irq);