diff options
author | Bernard Shyu <bernard_shyu@bizlinktech.com> | 2015-02-26 11:50:56 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-07 03:38:46 +0000 |
commit | 28d77f0c534227ec60d2b6a476033c42927c05ba (patch) | |
tree | ec2cb5d25de7d608d5d5acf4934bc1322477b32e | |
parent | d09405203fea4d19d5c1bcb7a25a7142062d6849 (diff) | |
download | chrome-ec-28d77f0c534227ec60d2b6a476033c42927c05ba.tar.gz |
usb_pd: fix HPD State error under IRQ_HPD
The HPD State field (bit7) should be HIGH when IRQ_HPD (bit8) is asserted.
BUG=none
BRANCH=samus
TEST=make buildall
Change-Id: I27181623d5ef2f657839aa63222d6788a3257dad
Reviewed-on: https://chromium-review.googlesource.com/253930
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
-rw-r--r-- | common/usb_pd_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 5a27e3cfb4..97ae02f585 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -2907,7 +2907,7 @@ void pd_send_hpd(int port, enum hpd_event hpd) return; data[0] = VDO_DP_STATUS((hpd == hpd_irq), /* IRQ_HPD */ - (hpd == hpd_high), /* HPD_HI|LOW */ + (hpd != hpd_low), /* HPD_HI|LOW */ 0, /* request exit DP */ 0, /* request exit USB */ 0, /* MF pref */ |