mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
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:
@@ -323,6 +323,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;
|
||||
|
||||
Reference in New Issue
Block a user