1
0
Fork 0

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>
pull/10/head
Li Jun 2017-08-19 03:11:57 +08:00 committed by Jason Liu
parent b25bbcfac5
commit 04cabfd329
1 changed files with 1 additions and 0 deletions

View File

@ -2100,6 +2100,7 @@ static void tcpm_detach(struct tcpm_port *port)
static void tcpm_src_detach(struct tcpm_port *port)
{
port->data_role = TYPEC_DEVICE;
tcpm_detach(port);
}