diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-09-16 12:41:15 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-21 22:03:07 +0000 |
commit | cb4a02d5e0358631242ada9178bbc6d5b8367340 (patch) | |
tree | 7fc8dae92bdc09f0453086aa39d10e932e34e49f /test/usb_pe_drp_old.c | |
parent | 3e5d154aaa0c8e71953e1227ffd760f61efe8135 (diff) | |
download | chrome-ec-cb4a02d5e0358631242ada9178bbc6d5b8367340.tar.gz |
TCPMv2: Move DPM requests to public API
It is safe (atomic bit ops) and will soon be necessary (new host
commands) to send DPM requests from outside the PD tasks. Rename
pe_dpm_request to pd_dpm_request and move the declarations into usb_pd.h
to reflect this.
BUG=b:168030639
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: Ied43e9f6973a3172b98090cc068a607257dce21b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2415068
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'test/usb_pe_drp_old.c')
-rw-r--r-- | test/usb_pe_drp_old.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/usb_pe_drp_old.c b/test/usb_pe_drp_old.c index 3098f75bae..c9815b4726 100644 --- a/test/usb_pe_drp_old.c +++ b/test/usb_pe_drp_old.c @@ -327,7 +327,7 @@ test_static int test_prl_is_busy(enum pd_power_role pr) prl_is_busy_flag = true; /* Make a request to perform a Port Discovery */ - pe_dpm_request(PORT0, DPM_REQUEST_PORT_DISCOVERY); + pd_dpm_request(PORT0, DPM_REQUEST_PORT_DISCOVERY); task_wait_event(10 * MSEC); task_wait_event(10 * MSEC); |