summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-08-06 18:02:17 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-10 20:07:32 -0700
commitd54387c18e20f5973ae62fdc7f8a95872b52f4f5 (patch)
treec9e552984b2e25a68d3f7bf7ee840582c3f2011a /util
parent8230e5b356a60831ecc47cd25696d0a1b880c552 (diff)
downloadchrome-ec-d54387c18e20f5973ae62fdc7f8a95872b52f4f5.tar.gz
kevin / gru: Notify host of HPD IRQ status
If an HPD IRQ event is seen, make note of it and keep the status set until informing the host. BUG=chrome-os-partner:55925 BRANCH=None TEST=Manual on kevin, trigger HPD event, verify that event bit is set in reply to first host command and not subsequent host commands. Change-Id: I0900a683dcb344d5d4d03a1fa6e3d8de913597b2 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/366990 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Chris Zhong <zyw@rock-chips.com> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/ectool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c
index d42c6941f3..6d9c09737d 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -4294,6 +4294,8 @@ int cmd_usb_pd_mux_info(int argc, char *argv[])
printf("OPEN ");
if (r.flags & USB_PD_MUX_POLARITY_INVERTED)
printf("INV ");
+ if (r.flags & USB_PD_MUX_HPD_IRQ)
+ printf("HPD_IRQ ");
printf("\n");
}