diff --git a/init/etc/init.qcom.rc b/init/etc/init.qcom.rc index df20f42b..7bc8db80 100644 --- a/init/etc/init.qcom.rc +++ b/init/etc/init.qcom.rc @@ -55,6 +55,10 @@ on early-init # Disable UFS clock scaling write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 0 + # Disable UFS auto_hibern8 + write /sys/bus/platform/devices/1d84000.ufshc/auto_hibern8 0 + # Disable UFS clock gating + write /sys/bus/platform/devices/1d84000.ufshc/clkgate_enable 0 chown root system /dev/kmsg chmod 0620 /dev/kmsg @@ -532,6 +536,10 @@ on property:sys.boot_completed=1 write /dev/kmsg "Boot completed " #Enable UFS clock scaling back write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 1 + #Enable UFS auto_hibern8 back + write /sys/bus/platform/devices/1d84000.ufshc/auto_hibern8 5000 + #Enable UFS clock gating back + write /sys/bus/platform/devices/1d84000.ufshc/clkgate_enable 1 #Reset read ahead for dm-0 and dm-1 to 512kb write /sys/block/dm-0/queue/read_ahead_kb 512 write /sys/block/dm-1/queue/read_ahead_kb 512