MLK-16820-1 staging: typec: tcpm: don't do source debounce if remote keep Rp
authorLi Jun <jun.li@nxp.com>
Wed, 15 Nov 2017 15:52:30 +0000 (23:52 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:55:46 +0000 (15:55 -0500)
commit8497db9888e1871cc06711a80f82c9f61f3b1dfc
tree054271c5115bdaa3dac338565b586d3d6f75d915
parent9593d6d46e130a001678ed91821f1a75accefc9d
MLK-16820-1 staging: typec: tcpm: don't do source debounce if remote keep Rp

While TRY.SRC, if the remote keeps the Rp and we also enable Rp,
there will be a disconnect, this disconnect should be ignored,
then either the remote further enable Rd before timeout to have
a succeed TRY.SRC, or TRY.SRC timeout and start to sink.

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