MLK-16013-22 staging: typec: tcpm: split operations of power swap from sink to source
authorLi Jun <jun.li@nxp.com>
Thu, 27 Jul 2017 14:00:54 +0000 (22:00 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:20 +0000 (15:36 -0500)
commitf24076c520d9c8ada777fe51816b1f193f0a9763
tree8e1038f2d025fe5bc6048eb5f4d9ca86eb38192d
parentaa2489ddb7ac7249d00c8796dfaa55a0bfe5bf00
MLK-16013-22 staging: typec: tcpm: split operations of power swap from sink to source

Add one more state:PR_SWAP_SNK_SRC_ASSERT_RP, as the next state of
PR_SWAP_SNK_SRC_SINK_OFF, it will turn on vbus and wait the vbus
is really on and then send the PS_RDY to the other side.

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