Use modprobe --all to load all modules in modules.load am: 6050457e19

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14543092

Change-Id: I2fd7af6da1be910efc3c53e1a6312a7026e88da5
This commit is contained in:
Daniel Mentz 2021-06-23 06:26:10 +00:00 committed by Automerger Merge Worker
commit 6076106978
2 changed files with 9 additions and 21 deletions

View file

@ -7,25 +7,6 @@
# Load common kernel modules
# Modules here will be loaded *before* device specific modules
install_display_drivers
modprobe|mailbox-wc.ko
modprobe|aoc_core.ko
modprobe|aoc_channel_dev.ko
modprobe|aoc_control_dev.ko
modprobe|snd-soc-wm-adsp.ko
modprobe|snd-soc-cs35l41.ko
modprobe|aoc_char_dev.ko
modprobe|aoc_usb_driver.ko
modprobe|heatmap.ko
modprobe|gsa.ko
modprobe|gsa_gsc.ko
modprobe|abrolhos.ko
modprobe|haptics-cs40l2x.ko
modprobe|snd_soc_cs40l2x.ko
modprobe|slg51000-core.ko
modprobe|slg51000-regulator.ko
modprobe|pinctrl-slg51000.ko
modprobe|lwis.ko
modprobe|stmvl53l1.ko
modprobe|st21nfc.ko
modprobe|-b *
# All common modules loaded
setprop|vendor.common.modules.ready

View file

@ -61,7 +61,14 @@ if [ -f $cfg_file ]; then
"insmod") insmod $arg ;;
"setprop") setprop $arg 1 ;;
"enable") echo 1 > $arg ;;
"modprobe") modprobe -a -d "${modules_dir}" $arg ;;
"modprobe")
case ${arg} in
"-b *" | "-b")
arg="-b --all=${modules_dir}/modules.load" ;;
"*" | "")
arg="--all=${modules_dir}/modules.load" ;;
esac
modprobe -a -d "${modules_dir}" $arg ;;
"wait") wait_for_file $arg ;;
"install_display_drivers") install_display_drivers ;;
esac