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
parent
b25bbcfac5
commit
04cabfd329
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue