mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-13 03:15:06 +00:00
In tcpci_tcpc_drp_toggle the role control is being set to TYPEC_CC_OPEN. This works for the parade tcpci compliant tcpc, but does not work the anx7447. The tcpci spec has this description for the role control requirement (4.4.5.2): If DRP=1b, the only allowed values for CC1/CC2 are Rp/Rp or Rd/Rd. COMMAND.Look4Connection shall do nothing if CC1/CC2 are not Rp/Rp or Rd/Rd. This CL changes the role control setting associated with starting auto-toggle to be TYPEC_CC_RD. BUG=b:77544959 BRANCH=NONE TEST=Verfied that anx7447 does auto toggle between Rd and Rp. Previously, the TCPC_REG_COMMAND_LOOK4CONNECTION command was being ignored. Change-Id: Iea7ce963ebf57c0f3d43005385484913d97774fd Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1005795 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: S Wang <swang@analogix.corp-partner.google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>