From cf33914f6ced215cdf99be8ef2950461b2b4ff26 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Tue, 20 Jul 2021 22:08:04 +0800 Subject: [PATCH] thermal: change permission for usbc related thermal sysfs Bug: 183573049 Test: check permission for usbc related thermal sysfs Change-Id: Id5af18d9f0fc5acfe29d9b5be3f3beabaa36f480 --- conf/init.gs101.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 8ab62232..9d3a24bd 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -859,6 +859,8 @@ on property:vendor.thermal.link_ready=1 chown system system /dev/thermal/tz-by-name/quiet_therm/trip_point_0_hyst chown system system /dev/thermal/tz-by-name/neutral_therm/trip_point_0_temp chown system system /dev/thermal/tz-by-name/neutral_therm/trip_point_0_hyst + chown system system /dev/thermal/tz-by-name/usb_pwr_therm2/trip_point_0_temp + chown system system /dev/thermal/tz-by-name/usb_pwr_therm2/trip_point_0_hyst chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote @@ -866,6 +868,7 @@ on property:vendor.thermal.link_ready=1 chown system system /dev/thermal/cdev-by-name/fcc/cur_state chown system system /dev/thermal/cdev-by-name/dc_icl/cur_state chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state + chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state on property:vendor.disable.bcl.control=1 write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0