summaryrefslogtreecommitdiff
path: root/driver/tcpm/anx74xx.c
diff options
context:
space:
mode:
authorPatryk Duda <pdk@semihalf.com>2020-11-25 22:44:49 +0100
committerCommit Bot <commit-bot@chromium.org>2020-11-30 17:50:21 +0000
commit80bbcb5f97f095f0d8d2f895548c241660b7dc06 (patch)
tree10c6e6d84978f00ca2a6bfd28eaaa59acad9618f /driver/tcpm/anx74xx.c
parent171046ab529d027a10475c12a0b6dc1b0d053c33 (diff)
downloadchrome-ec-80bbcb5f97f095f0d8d2f895548c241660b7dc06.tar.gz
tcpm/anx74xx: Provide implementation of sop_prime_enable function
CL:2542865 adds calls to tcpm_sop_prime_enable() function but there is no implementation of sop_prime_enable() provided in anx74xx_tcpm_drv. This causes EC crashes during firmware_PDTrySrc test. This patch adds tcpci_tcpm_sop_prime_enable() and implementation of sop_prime_enable() in anx74xx_tcpm_drv, similarly to other ANX drivers. BUG=b:168560801, b:162254118 BRANCH=none TEST=Flash eve with EC ToT, run firmware_PDTrySrc test. Make sure that EC doesn't crash during test. Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: I7cb2738f2a238901d03e3d8cb98ee39ce26bf38a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2560635 Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'driver/tcpm/anx74xx.c')
-rw-r--r--driver/tcpm/anx74xx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/tcpm/anx74xx.c b/driver/tcpm/anx74xx.c
index a775abd172..4ca30f8eca 100644
--- a/driver/tcpm/anx74xx.c
+++ b/driver/tcpm/anx74xx.c
@@ -1168,6 +1168,9 @@ const struct tcpm_drv anx74xx_tcpm_drv = {
.select_rp_value = &anx74xx_tcpm_select_rp_value,
.set_cc = &anx74xx_tcpm_set_cc,
.set_polarity = &anx74xx_tcpm_set_polarity,
+#ifdef CONFIG_USB_PD_DECODE_SOP
+ .sop_prime_enable = &tcpci_tcpm_sop_prime_enable,
+#endif
.set_vconn = &anx74xx_tcpm_set_vconn,
.set_msg_header = &anx74xx_tcpm_set_msg_header,
.set_rx_enable = &anx74xx_tcpm_set_rx_enable,