summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2022-04-19 12:52:29 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-05 16:11:36 +0000
commitd767b1e4ac93b8e84110df19edc79a44bb789f76 (patch)
tree89cf75a6eb84512e41afd0e567e8e7177836a7a9 /test
parent2a39f3df356956b88d1a67eced2d545a54b57062 (diff)
downloadchrome-ec-d767b1e4ac93b8e84110df19edc79a44bb789f76.tar.gz
common/usbc: add new DPM for sink capability and request mismatch
In TBT EV - Host Source Power Provisioning test item. The port partner will return sink capability that it can support 3A, but it will request 1.5A at the end. In this case, EC will provide 3A for it and provide 1.5A for the second port partner. This case will cause test failed due to EC only provide 1.5A for both port. BUG=b:229683022 BRANCH=none TEST=make -j BOARD=primus TEST=make buildall TEST=verified by GRL Change-Id: Icc4904ec1267b7a34e64c01b626f607999072410 Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3592313 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/fake_usbc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c
index 6e61a1ca81..2cabb2dee0 100644
--- a/test/fake_usbc.c
+++ b/test/fake_usbc.c
@@ -300,6 +300,10 @@ void dpm_add_non_pd_sink(int port)
{
}
+void dpm_evaluate_request_rdo(int port, uint32_t rdo)
+{
+}
+
void dpm_remove_sink(int port)
{
}