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. Test: manual test on device Bug: 268584498 Bug: 301380358 Change-Id: I6c3e7df09a61e26f3b976a86bd65cb646edd653d Signed-off-by: Badhri Jagan Sridharan <badhri@google.com> (cherry picked from commit 7c2d62aafc219af11252dabf49d84d84b7ccfa57)
This commit is contained in:
parent
90ece745e5
commit
0991cd02ca
1 changed files with 6 additions and 0 deletions
|
@ -355,6 +355,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