summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/usb_pe_drp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/usb_pe_drp.c b/test/usb_pe_drp.c
index 9c5771851b..8fe474ce8f 100644
--- a/test/usb_pe_drp.c
+++ b/test/usb_pe_drp.c
@@ -64,9 +64,11 @@ static int test_pe_frs(void)
/*
* FRS will only trigger when we are SNK, with an Explicit
- * contract. So set this state up manually
+ * contract. So set this state up manually. Also ensure any
+ * background tasks (ex. discovery) aren't running.
*/
tc_prs_src_snk_assert_rd(PORT0);
+ pe_set_flag(PORT0, PE_FLAGS_DISCOVER_PORT_IDENTITY_DONE);
pe_set_flag(PORT0, PE_FLAGS_EXPLICIT_CONTRACT);
set_state_pe(PORT0, PE_SNK_READY);
pe_run(PORT0, EVT_IGNORED, ENABLED);