MLK-16013-23 staging: typec: tcpm: Do soft reset for unexpected get sink cap
authorLi Jun <jun.li@nxp.com>
Thu, 27 Jul 2017 14:24:13 +0000 (22:24 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:20 +0000 (15:36 -0500)
commit1532ec54122d2ce97e5a653a1b873b4284fc684f
treeb40969f698dd25b2039c0a19f5f4f616292fc06c
parentf24076c520d9c8ada777fe51816b1f193f0a9763
MLK-16013-23 staging: typec: tcpm: Do soft reset for unexpected get sink cap

A source or sink should receive the get_sink_cap message when in SRC_RDY or
SNK_RDY, if the port receives a get sink capability request before ready,
which means there is message sync error, we should do soft reset to recover
from it, instead of sending a reject message.

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