universal7580: ramdisk: move some sysfs node permissions to ueventd.samsungexynos7580...
authorDanny Wood <danwood76@gmail.com>
Tue, 14 May 2019 15:06:32 +0000 (16:06 +0100)
committerJan Altensen <info@stricted.net>
Fri, 16 Aug 2019 21:18:55 +0000 (23:18 +0200)
Change-Id: I8f37a859b4075b20f4f1ba6e1adfa025cd651638

ramdisk/etc/init.samsung.rc
ramdisk/etc/init.samsungexynos7580.rc
ramdisk/etc/ueventd.samsungexynos7580.rc

index 935b719214ca0c142fe9b09b833d21b17ceabcbf..066008a80558df0163a8f79c0685ed22ad781d03 100644 (file)
@@ -138,13 +138,6 @@ on boot
     chmod 0660 /sys/class/sec/sec_epen/input/enabled
     chown system system /sys/class/sec/sec_epen/input/enabled
 
-    # Switch Device
-    chown system radio /sys/class/sec/switch/usb_sel
-    chown system radio /sys/class/sec/switch/uart_sel
-    chown system radio /sys/class/sec/switch/uart_en
-    chown system radio /sys/class/sec/switch/otg_test
-    chown system radio /sys/class/sec/switch/apo_factory
-
     # GPIO DVS
     chown radio system /sys/class/secgpio_check/secgpio_check_all/gpioinit_check
     chown radio system /sys/class/secgpio_check/secgpio_check_all/gpiosleep_check
@@ -290,14 +283,6 @@ on boot
     mkdir /dev/bus 0755 root root
     mkdir /dev/bus/usb 0755 root root
 
-    # OTG Test
-    chown system radio /sys/class/host_notify/usb_otg/booster
-    chmod 0664 /sys/class/host_notify/usb_otg/booster
-
-    # usb disable
-    chown system usb /sys/class/usb_notify/usb_control/disable
-    chmod 0664 /sys/class/usb_notify/usb_control/disable
-
     write /sys/block/mmcblk0/queue/scheduler noop
     write /sys/block/sda/queue/scheduler noop
 
index 5082c5a662a383abdf372abc85c09a7ac5bafc2d..610621646a2f19aee0473c780d2c941391285957 100644 (file)
@@ -68,14 +68,6 @@ on boot
     chmod 0222 /sys/kernel/debug/tracing/trace_marker
     write /sys/kernel/debug/tracing/tracing_on 0
 
-    # Change permission for GPU
-    chown system system /sys/devices/11400000.mali/power_policy
-    chmod 0664 /sys/devices/11400000.mali/power_policy
-
-    # Change permission for touch key enabled
-    chown system system /sys/class/input/input8/enabled
-    chmod 0664 /sys/class/input/input8/enabled
-
     # Dynamic cluster hotplug
     chown system system /sys/devices/system/cpu/clusterhotplug/force_hstate
     chmod 0660 /sys/devices/system/cpu/clusterhotplug/force_hstate
@@ -88,32 +80,6 @@ on boot
     chown system system /sys/module/cpuidle/parameters/off
     chmod 0660 /sys/module/cpuidle/parameters/off
 
-    # Change permission for dvfshelper
-    chown radio system /sys/devices/11400000.mali/dvfs_table
-    chown radio system /sys/devices/11400000.mali/dvfs_min_lock
-    chown radio system /sys/devices/11400000.mali/dvfs_max_lock
-    chown radio system /sys/devices/11400000.mali/highspeed_clock
-    chown radio system /sys/devices/11400000.mali/highspeed_load
-    chmod 0664 /sys/devices/11400000.mali/dvfs_table
-    chmod 0664 /sys/devices/11400000.mali/dvfs_min_lock
-    chmod 0664 /sys/devices/11400000.mali/dvfs_max_lock
-    chmod 0664 /sys/devices/11400000.mali/highspeed_clock
-    chmod 0664 /sys/devices/11400000.mali/highspeed_load
-
-    chown radio system /sys/class/devfreq/17000020.bus_mif/available_frequencies
-    chown radio system /sys/class/devfreq/17000020.bus_mif/min_freq
-    chown radio system /sys/class/devfreq/17000020.bus_mif/max_freq
-    chmod 0664 /sys/class/devfreq/17000020.bus_mif/available_frequencies
-    chmod 0664 /sys/class/devfreq/17000020.bus_mif/min_freq
-    chmod 0664 /sys/class/devfreq/17000020.bus_mif/max_freq
-
-    chown radio system /sys/class/devfreq/17000010.bus_int/available_frequencies
-    chown radio system /sys/class/devfreq/17000010.bus_int/min_freq
-    chown radio system /sys/class/devfreq/17000010.bus_int/max_freq
-    chmod 0664 /sys/class/devfreq/17000010.bus_int/available_frequencies
-    chmod 0664 /sys/class/devfreq/17000010.bus_int/min_freq
-    chmod 0664 /sys/class/devfreq/17000010.bus_int/max_freq
-
     # CPU Idle
     chown system system /sys/module/cpuidle_exynos64_smp/parameters/enable_mask
 
@@ -263,10 +229,6 @@ on boot
     # CS socket
     mkdir /dev/socket/cs_socket 0770 system system
 
-    # Switch Device
-    chown system radio /sys/class/sec/switch/usb_state
-    chown system radio /sys/class/sec/switch/chg_type
-
 #for datarouter
     chown system system /dev/dun
     chown system system /dev/ttyGS0
@@ -274,11 +236,6 @@ on boot
     chown system system /dev/ttyGS2
     chown system system /dev/ttyGS3
 
-# OTG_TEST
-    chown system radio /sys/class/sec/switch/otg_test
-    chown system radio /sys/class/host_notify/usb_otg/booster
-    chmod 0660 /sys/class/host_notify/usb_otg/booster
-
  # tdmb
     chown system system /dev/tdmb
     chmod 0660 /dev/tdmb
index 360b5bf8313fe1f75898b239ec0646eaab5138a4..7b491559c4769e62594d4f53bc4a87561374df6b 100644 (file)
 /dev/tzirs                0660   system     system
 
 # Sensorhub IIO
-/dev/ssp_sensorhub        0660   system                system
-/dev/iio:device*          0660   system                system
+/dev/ssp_sensorhub        0660   system        system
+/dev/iio:device*          0660   system        system
 /sys/devices/13910000.spi/spi_master/spi0/spi0.0/iio:device*    buffer/enable       0660    system    system
 /sys/devices/13910000.spi/spi_master/spi0/spi0.0/iio:device*    buffer/length       0660    system    system
-/sys/bus/iio/devices/iio:device*    0664   system     radio
+/sys/bus/iio/devices/iio:device*    *    0664   system     radio
 
 # Dynamic Cluster Hotplug
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/target_loads        0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/above_hispeed_delay 0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/hispeed_freq        0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/go_hispeed_load     0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/min_sample_time     0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/timer_rate  0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/timer_slack 0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/boost       0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/boostpulse  0200    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/boostpulse_duration 0660    system  system
-/sys/devices/system/cpu/cpu0/cpufreq   interactive/io_is_busy  0660    system  system
-
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/target_loads        0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/above_hispeed_delay 0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/hispeed_freq        0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/go_hispeed_load     0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/min_sample_time     0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/timer_rate  0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/timer_slack 0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/boost       0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/boostpulse  0200    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/boostpulse_duration 0660    system  system
-/sys/devices/system/cpu/cpu4/cpufreq   interactive/io_is_busy  0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    target_loads            0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    above_hispeed_delay     0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    hispeed_freq            0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    go_hispeed_load         0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    min_sample_time         0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    timer_rate              0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    timer_slack             0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    boost                   0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    boostpulse              0200    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    boostpulse_duration     0660    system  system
+/sys/devices/system/cpu/cpu0/cpufreq/interactive    io_is_busy              0660    system  system
+
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    target_loads            0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    above_hispeed_delay     0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    hispeed_freq            0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    go_hispeed_load         0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    min_sample_time         0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    timer_rate              0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    timer_slack             0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    boost                   0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    boostpulse              0200    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    boostpulse_duration     0660    system  system
+/sys/devices/system/cpu/cpu4/cpufreq/interactive    io_is_busy              0660    system  system
+
+# Touch key enabled permissions
+/sys/class/input/input8 enabled 0664    system  system
+
+# Mali Device
+/sys/devices/11400000.mali  power_policy    0644    system  system
+/sys/devices/11400000.mali  dvfs_table      0644    radio   system
+/sys/devices/11400000.mali  dvfs_min_lock   0644    radio   system
+/sys/devices/11400000.mali  dvfs_max_lock   0644    radio   system
+/sys/devices/11400000.mali  highspeed_clock 0644    radio   system
+/sys/devices/11400000.mali  highspeed_load  0644    radio   system
+
+/sys/class/devfreq/17000020.bus_mif available_frequencies   0644    radio   system
+/sys/class/devfreq/17000020.bus_mif min_freq                0644    radio   system
+/sys/class/devfreq/17000020.bus_mif max_freq                0644    radio   system
+
+/sys/class/devfreq/17000010.bus_int available_frequencies   0644    radio   system
+/sys/class/devfreq/17000010.bus_int min_freq                0644    radio   system
+/sys/class/devfreq/17000010.bus_int max_freq                0644    radio   system
+
+# USB OTG
+/sys/class/sec/switch       usb_state   0664    radio   system
+/sys/class/sec/switch       chg_type    0664    radio   system
+/sys/class/sec/switch       otg_test    0664    radio   system
+/sys/class/sec/switch       usb_sel     0664    radio   system
+/sys/class/sec/switch       uart_sel    0664    radio   system
+/sys/class/sec/switch       uart_en     0664    radio   system
+/sys/class/sec/switch       apo_factory 0664    radio   system
+
+/sys/class/host_notify/usb_otg      booster 0664    radio   system
+/sys/class/usb_notify/usb_control   disable 0664    system  usb
+
+/sys/module/workqueue   parameters/power_efficient  0664    system  system
 
 # Audio NXP AMP
 /dev/i2c-20                0660   system     system
 
 # MobiCore
 /dev/mobicore             0700   system     system
-/dev/mobicore-user        0666   radio         system
+/dev/mobicore-user        0666   radio         system
 
 # Fingerprint Sensor
 /dev/vfsspi        0660   system     system