Usb: Set connected status when connected to non compliant port partners
Set mode, power role and data role when connected to non compliant port partners. Bug: 268584498 Change-Id: I6c3e7df09a61e26f3b976a86bd65cb646edd653d Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
This commit is contained in:
parent
a64bf67d97
commit
38a132ae24
1 changed files with 6 additions and 0 deletions
|
@ -312,6 +312,12 @@ Status queryNonCompliantChargerStatus(std::vector<PortStatus> *currentPortStatus
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if ((*currentPortStatus)[i].complianceWarnings.size() > 0) {
|
||||
(*currentPortStatus)[i].currentMode = PortMode::UFP;
|
||||
(*currentPortStatus)[i].currentPowerRole = PortPowerRole::SINK;
|
||||
(*currentPortStatus)[i].currentDataRole = PortDataRole::NONE;
|
||||
(*currentPortStatus)[i].powerBrickStatus = PowerBrickStatus::CONNECTED;
|
||||
}
|
||||
}
|
||||
}
|
||||
return Status::SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue