summaryrefslogtreecommitdiff
path: root/common/pd_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/pd_log.c')
-rw-r--r--common/pd_log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/pd_log.c b/common/pd_log.c
index 00757690f2..ca66313b9d 100644
--- a/common/pd_log.c
+++ b/common/pd_log.c
@@ -176,6 +176,9 @@ dequeue_retry:
int i, res;
incoming_logs = 0;
for (i = 0; i < PD_PORT_COUNT; ++i) {
+ /* only accessories who knows Google logging format */
+ if (pd_get_identity_vid(i) != USB_VID_GOOGLE)
+ continue;
res = pd_fetch_acc_log_entry(i);
if (res == EC_RES_BUSY) /* host should retry */
return EC_RES_BUSY;