thermal: enable cooling devices cur state permissions

Enable permissions for wcl_fcc and dc_icl cooling devices
current state for charging throttling.

Bug: 204523879
Test: build and boot on device. Check charging throttling
Change-Id: Icf175bd270d0eb6a9d2adcde2199b034683a8b8f
Signed-off-by: Sayanna Chandula <sayanna@google.com>
This commit is contained in:
Sayanna Chandula 2022-02-11 19:28:19 +00:00
parent ff3ce560fa
commit 589318e5c4

View file

@ -884,6 +884,8 @@ on property:vendor.thermal.link_ready=1
chown system system /dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote
chown system system /dev/thermal/cdev-by-name/tpu_cooling/user_vote
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
on property:vendor.disable.bcl.control=1
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0