anx74xx: enable driver "release".

TEST="make buildall" succeeds, "make runtests" passes for reef.

returning SUCCESS instead of UNIMPLEMENTED from .release() means the
pd_task() is allowed to reinitialize the TCPC when coming out of
PD_STATE_SUSPENDED or similar scenario.

TEST=verified anx3429 firmware update succeeds, USB port still usable
	for charging after update.

BRANCH=none
BUG=b:35586895

Change-Id: I1a624ccf25dfa6468de72f8564f936bc0a35edb1
Signed-off-by: Caveh Jalali <caveh@google.com>
Reviewed-on: https://chromium-review.googlesource.com/596797
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Caveh Jalali
2017-07-28 17:43:45 -07:00
committed by chrome-bot
parent 611887143a
commit 68dfee896e

View File

@@ -1060,9 +1060,13 @@ static int anx74xx_tcpm_init(int port)
return EC_SUCCESS;
}
/*
* Dissociate from the TCPC.
*/
static int anx74xx_tcpm_release(int port)
{
return EC_ERROR_UNIMPLEMENTED;
return EC_SUCCESS;
}
const struct tcpm_drv anx74xx_tcpm_drv = {