mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user