From 05a3dcba0a33b329290bc238105fafe0850b7b3c Mon Sep 17 00:00:00 2001 From: Zheng Pan Date: Tue, 22 Aug 2023 17:26:13 -0700 Subject: [PATCH] Update i2c bus sysfs path Bug: 296941196 Test: make sure i2c bus paths exist and are accessable. Change-Id: Id5f8d12c35c6c0d41e82776d2d6dff4371e73213 --- dumpstate/dump_power.rc | 4 +--- powerstats/ZumaProCommonDataProviders.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dumpstate/dump_power.rc b/dumpstate/dump_power.rc index 4c16340..1b2b124 100644 --- a/dumpstate/dump_power.rc +++ b/dumpstate/dump_power.rc @@ -9,9 +9,7 @@ on init chown system system /d/regmap/6-0057-pca9468-mains/registers # Dump eeprom - chown system system /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom - chown system system /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom - chown system system /sys/devices/platform/10ca0000.hsi2c/i2c-6/6-0050/eeprom + chown system system /sys/devices/platform/10ca0000.hsi2c/i2c-10/10-0050/eeprom chown system system /dev/battery_history chmod 0644 /dev/battery_history diff --git a/powerstats/ZumaProCommonDataProviders.cpp b/powerstats/ZumaProCommonDataProviders.cpp index d8dd74d..90abcdc 100644 --- a/powerstats/ZumaProCommonDataProviders.cpp +++ b/powerstats/ZumaProCommonDataProviders.cpp @@ -679,5 +679,5 @@ void addNFC(std::shared_ptr p) { "NFC", "NFC subsystem"); p->addStateResidencyDataProvider(std::make_unique( - "/sys/devices/platform/10c80000.hsi2c/i2c-6/6-0008/power_stats", cfgs)); + "/sys/devices/platform/10c90000.hsi2c/i2c-9/9-0008/power_stats", cfgs)); }