sdm660: allow system to access UFS sysfs

Allow system to read/write UFS device attributes on sysfs.

Change-Id: I7ea0a8f289b29ebcff2b894237efbe90b76f1a80
This commit is contained in:
Amir Samuelov 2020-01-12 11:34:24 +02:00 committed by Max Weffers
parent e970cc2df6
commit 568313007c
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE

View file

@ -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