MLK-16013-31 usb: typec: Set to unattached state if souce disconnected
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 07:07:13 +0000 (12:37 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit5ab85a9540b925746e987af702e7f991ffeaf4ae
tree32db7ec562d8301e6f381d7f6c25b68077e11756
parent6f3d868f631e3e6fe0c08c098a5e72a9732aac47
MLK-16013-31 usb: typec: Set to unattached state if souce disconnected

In SNK_HARD_RESET_SINK_ON, if the source disconnected, we should set
state to be unattached state intead of startup sink.

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