Snap for 12309590 from 480651ab83
to 24Q4-release
Change-Id: I109695a061eae7fa2d1d1ac42d3f667f6f57f547
This commit is contained in:
commit
b4d7d39e64
2 changed files with 11 additions and 6 deletions
|
@ -1279,4 +1279,3 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
dumpstate.strict_run=false
|
dumpstate.strict_run=false
|
||||||
|
|
||||||
PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true
|
PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true
|
||||||
PRODUCT_CHECK_PREBUILT_MAX_PAGE_SIZE := true
|
|
||||||
|
|
|
@ -103,8 +103,8 @@ constexpr char kThermalZoneForTempReadSecondary1[] = "usb_pwr_therm";
|
||||||
constexpr char kThermalZoneForTempReadSecondary2[] = "qi_therm";
|
constexpr char kThermalZoneForTempReadSecondary2[] = "qi_therm";
|
||||||
constexpr char kPogoUsbActive[] = "/sys/devices/platform/google,pogo/pogo_usb_active";
|
constexpr char kPogoUsbActive[] = "/sys/devices/platform/google,pogo/pogo_usb_active";
|
||||||
constexpr char kPogoEnableHub[] = "/sys/devices/platform/google,pogo/enable_hub";
|
constexpr char kPogoEnableHub[] = "/sys/devices/platform/google,pogo/enable_hub";
|
||||||
constexpr char kPogoEnableUsb[] = "/sys/devices/platform/google,pogo/enable_usb";
|
|
||||||
constexpr char kInternalHubDevnum[] = "/sys/bus/usb/devices/1-1/devnum";
|
constexpr char kInternalHubDevnum[] = "/sys/bus/usb/devices/1-1/devnum";
|
||||||
|
constexpr char KPogoMoveDataToUsb[] = "/sys/devices/platform/google,pogo/move_data_to_usb";
|
||||||
constexpr char kPowerSupplyUsbType[] = "/sys/class/power_supply/usb/usb_type";
|
constexpr char kPowerSupplyUsbType[] = "/sys/class/power_supply/usb/usb_type";
|
||||||
constexpr char kIrqHpdCount[] = "irq_hpd_count";
|
constexpr char kIrqHpdCount[] = "irq_hpd_count";
|
||||||
constexpr char kUdcUeventRegex[] =
|
constexpr char kUdcUeventRegex[] =
|
||||||
|
@ -245,12 +245,12 @@ ScopedAStatus Usb::enableUsbDataWhileDocked(const string& in_portName,
|
||||||
ALOGI("Userspace enableUsbDataWhileDocked opID:%ld", in_transactionId);
|
ALOGI("Userspace enableUsbDataWhileDocked opID:%ld", in_transactionId);
|
||||||
|
|
||||||
int flags = O_RDONLY;
|
int flags = O_RDONLY;
|
||||||
::android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(kPogoEnableUsb, flags)));
|
::android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(KPogoMoveDataToUsb, flags)));
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
notSupported = false;
|
notSupported = false;
|
||||||
success = WriteStringToFile("1", kPogoEnableUsb);
|
success = WriteStringToFile("1", KPogoMoveDataToUsb);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
ALOGE("Write to enable_usb failed");
|
ALOGE("Write to move_data_to_usb failed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -996,7 +996,13 @@ Status getPortStatusHelper(android::hardware::usb::Usb *usb,
|
||||||
string pogoUsbActive = "0";
|
string pogoUsbActive = "0";
|
||||||
if (ReadFileToString(string(kPogoUsbActive), &pogoUsbActive) &&
|
if (ReadFileToString(string(kPogoUsbActive), &pogoUsbActive) &&
|
||||||
stoi(Trim(pogoUsbActive)) == 1) {
|
stoi(Trim(pogoUsbActive)) == 1) {
|
||||||
(*currentPortStatus)[i].usbDataStatus.push_back(UsbDataStatus::DISABLED_DOCK);
|
/*
|
||||||
|
* Always signal USB device mode disabled irrespective of hub enabled while docked.
|
||||||
|
* Hub gets automatically enabled as needed. Signalling DISABLED_DOCK_HOST_MODE &
|
||||||
|
* DEVICE_MODE during pogo direct can cause notifications to show for brief windows
|
||||||
|
* when the state machine is still moving to steady state.
|
||||||
|
*/
|
||||||
|
(*currentPortStatus)[i].usbDataStatus.push_back(UsbDataStatus::DISABLED_DOCK_DEVICE_MODE);
|
||||||
dataEnabled = false;
|
dataEnabled = false;
|
||||||
}
|
}
|
||||||
if (!usb->mUsbDataEnabled) {
|
if (!usb->mUsbDataEnabled) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue