summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2015-01-23 10:58:02 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-24 00:32:33 +0000
commit6f4af268099881e5b75520c76ac65223453ce1d5 (patch)
tree943088558ddb766f516341ecc3e2fc0a76bb91c6 /include
parentc1717516549d16f9230d6e1123c647f2d3c7b62e (diff)
downloadchrome-ec-6f4af268099881e5b75520c76ac65223453ce1d5.tar.gz
pd: poll PD events only on Google accessories
Poll USB PD accessories for event log entries only after we have performed a Discover Identity and identified them as a Google device (USB VID = 0x18d1) in order to avoid confusing third party devices with our logging VDM. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=samus BUG=chrome-os-partner:35858 TEST=connect Zinger to Samus and see the proper PD log entries. Change-Id: I022fa0d19dc012e46a27b786a724ff251280eeaf Reviewed-on: https://chromium-review.googlesource.com/242871 Reviewed-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 2a473bb628..f2358d02b3 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -939,6 +939,14 @@ uint32_t pd_dfp_exit_mode(int port);
void pd_dfp_pe_init(int port);
/**
+ * Return the VID of the USB PD accessory connected to a specified port
+ *
+ * @param port USB-C port number
+ * @return the USB Vendor Identifier or 0 if it doesn't exist
+ */
+uint16_t pd_get_identity_vid(int port);
+
+/**
* Store Device ID & RW hash of device
*
* @param port USB-C port number