From 8e5befe1acae423aa99882bff3c5659b360d721f Mon Sep 17 00:00:00 2001 From: Samuel Jiang Date: Wed, 2 Oct 2019 11:19:39 +0800 Subject: meta-quanta: gsj: quanta-nvme_powerctrl: fix setting initial SSD[i] GPIOs When any SSD was not plugged, the bash script only sets RST_BMC_U2 and POWER_U2 GPIOs low for SSD0. Instead set the corresponding GPIOs low for all unplugged SSDs. (From meta-quanta rev: 4ac9d5f6173debda19b9b0d5da6075a48407b390) Change-Id: I914d74634f93506d7911fdd3e1b75b73073ccdcc Signed-off-by: Samuel Jiang Signed-off-by: Brad Bishop --- .../meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta-quanta') diff --git a/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh b/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh index 71116fbe9..08aa7a054 100644 --- a/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh +++ b/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh @@ -45,8 +45,8 @@ do CLOCK_GEN_VALUE=$(printf '0x%x\n' \ "$(($CLOCK_GEN_VALUE | 0x$update_value))") else - set_gpio_direction "${RST_BMC_U2[$1]}" "low" - set_gpio_direction "${POWER_U2[$1]}" "low" + set_gpio_direction "${RST_BMC_U2[$i]}" "low" + set_gpio_direction "${POWER_U2[$i]}" "low" CLOCK_GEN_VALUE=$(printf '0x%x\n' \ "$(($CLOCK_GEN_VALUE & ~0x$update_value))") -- cgit v1.2.3