sync: huiwei: 6d7e66668a8e94eeaf91ab8b41639a1234e89924

merge into bb16bfd32c08053e39e6c7b75d09f19a9e57a998
This commit is contained in:
Bingpeng_Lao
2024-03-02 12:53:46 +03:00
committed by Han Gao
parent fd760c09e1
commit a78c95c854
4 changed files with 63 additions and 4 deletions

View File

@@ -562,6 +562,11 @@ static enum tcpm_state tcpm_default_state(struct tcpm_port *port)
return SRC_UNATTACHED;
}
int get_tcpm_port_polarity(struct tcpm_port *port)
{
return port->polarity;
}
static bool tcpm_port_is_disconnected(struct tcpm_port *port)
{
return (!port->attached && port->cc1 == TYPEC_CC_OPEN &&