MLK-16013-44 usb: typec: tcpm: set data role after src detach
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 07:29:18 +0000 (12:59 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitbb1d6c84615cb9e91e35983bdbae8250e6ffcfc9
tree1722319d42195194870038d3e8aa1c9f113631ee
parent0b6ce9db6bacece28f89e956016ac0631a3918a1
MLK-16013-44 usb: typec: tcpm: set data role after src detach

As the default data role is device mode if the port is not host,
so set the port data role to be device mode after src detach, this
is to fix the issue of port data role still kept to be host while
the port is open.

Acked-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