MLK-16013-21 usb: typec: tcpm: handle pd message send failure
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 06:07:36 +0000 (11:37 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit2fc7a480fbc892df9547a8d7fa517091da9d34dd
tree615bfbe25907426781a7d2b27942b9bbb77ad8ae
parent7e2610833201558d818dc976c606c87ce791071a
MLK-16013-21 usb: typec: tcpm: handle pd message send failure

If the PD message send failed, we need to do soft reset, further if
soft reset failed, we have to start a hard reset.

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