From 568313007c46f347f3ebb392a5d23073b64d095f Mon Sep 17 00:00:00 2001 From: Amir Samuelov Date: Sun, 12 Jan 2020 11:34:24 +0200 Subject: [PATCH] sdm660: allow system to access UFS sysfs Allow system to read/write UFS device attributes on sysfs. Change-Id: I7ea0a8f289b29ebcff2b894237efbe90b76f1a80 --- rootdir/etc/init.qcom.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 5ed3cdea..bb5db758 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -263,6 +263,10 @@ on boot chown system system /sys/class/sensors/apds9930-proximity/enable chown system system /sys/class/sensors/apds9930-proximity/poll_delay + # Allow access to UFS device attributes on sysfs + chown system system /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8 + chmod 0660 /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8 + # Create directory used for display # for backward compatibility mkdir /persist/display 0770 system graphics