MLK-16013-32 staging: typec: refine source to sink swap handling
authorLi Jun <jun.li@nxp.com>
Fri, 28 Jul 2017 09:30:50 +0000 (17:30 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:21 +0000 (15:36 -0500)
commit79b7ca0c1f85396ce59450e9a17e177ec8e4ea66
tree02064e40aad6581838b4bceb4e288ede3bfb5299
parent61871e3b8610e11d403e2f0fedcf39855809322c
MLK-16013-32 staging: typec: refine source to sink swap handling

To early start sink power after source turn off vbus, move the set power
role after vbus is turned off in PR_SWAP_SRC_SNK_SOURCE_OFF, also per
spec, we should do error recovery if the sink side does not turn on
vbus in PD_T_PS_SOURCE_ON.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
drivers/staging/typec/tcpm.c