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.

Change-Id: I75ba092bd236842ac40124f35f186d5560fcd648
Signed-off-by: Samuel Jiang <Samuel.Jiang@quantatw.com>
diff --git a/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh b/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh
index 71116fb..08aa7a0 100644
--- a/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh
+++ b/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh
@@ -45,8 +45,8 @@
         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))")