MLK-16013-44 staging: typec: tcpm: set data role after src detach
authorLi Jun <jun.li@nxp.com>
Fri, 18 Aug 2017 19:11:57 +0000 (03:11 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:48 +0000 (15:36 -0500)
commit7061c2e5dba85cdcd8a855301352f20236ad3497
tree75b54c375609c77963a7f6cf5c1b821a136060e2
parent342780429c04a6c6953bbe2b6a78e30306b135df
MLK-16013-44 staging: 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>
drivers/staging/typec/tcpm.c