From a8f73474fc04b2c115c986c93fc8de555eacbe3d Mon Sep 17 00:00:00 2001 From: Brandon Wyman Date: Tue, 16 Feb 2021 17:52:36 -0600 Subject: Rainier: Add a presence to bind delay of 1500ms The firmware code in these power supplies takes about 1500 milliseconds to boot after they are inserted, and the presence line goes active. Until the firmware has completely booted, the power supplies will not respond to the I2C traffic initiated by the BMC device driver code as it attempts to probe the hardware. Adding in a DRIVER_BIND_DELAY_MS environment variable, set to 1500 (milliseconds), to delay the device driver binding in order to hold off the probe until the power supply firmware should be ready, in order to avoid ENXIO errors. Change-Id: I101f8e3b7ff1c2c9e76df758c4551c7793006266 Signed-off-by: Brandon Wyman --- .../phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-0.conf | 1 + .../phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-1.conf | 1 + .../phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-2.conf | 1 + .../phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-3.conf | 1 + 4 files changed, 4 insertions(+) (limited to 'meta-ibm') diff --git a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-0.conf b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-0.conf index 07564e989..d2c96e643 100644 --- a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-0.conf +++ b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-0.conf @@ -1,6 +1,7 @@ INVENTORY=/system/chassis/motherboard/powersupply0 DEVPATH=/dev/input/by-path/platform-gpio-keys-event KEY=144 +DRIVER_BIND_DELAY_MS=1500 NAME=powersupply0 DRIVERS=/sys/bus/i2c/drivers/ibm-cffps,3-0068 EXTRA_IFACES=xyz.openbmc_project.Inventory.Item.PowerSupply diff --git a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-1.conf b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-1.conf index 304442fe9..655ce07f5 100644 --- a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-1.conf +++ b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-1.conf @@ -1,6 +1,7 @@ INVENTORY=/system/chassis/motherboard/powersupply1 DEVPATH=/dev/input/by-path/platform-gpio-keys-event KEY=145 +DRIVER_BIND_DELAY_MS=1500 NAME=powersupply1 DRIVERS=/sys/bus/i2c/drivers/ibm-cffps,3-0069 EXTRA_IFACES=xyz.openbmc_project.Inventory.Item.PowerSupply diff --git a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-2.conf b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-2.conf index 0f2a9c4f6..0723892d6 100644 --- a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-2.conf +++ b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-2.conf @@ -1,6 +1,7 @@ INVENTORY=/system/chassis/motherboard/powersupply2 DEVPATH=/dev/input/by-path/platform-gpio-keys-event KEY=146 +DRIVER_BIND_DELAY_MS=1500 NAME=powersupply2 DRIVERS=/sys/bus/i2c/drivers/ibm-cffps,3-006a EXTRA_IFACES=xyz.openbmc_project.Inventory.Item.PowerSupply diff --git a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-3.conf b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-3.conf index 3ea74acab..3dadeefbe 100644 --- a/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-3.conf +++ b/meta-ibm/recipes-phosphor/gpio/phosphor-gpio-monitor/rainier/obmc/gpio/phosphor-power-supply-3.conf @@ -1,6 +1,7 @@ INVENTORY=/system/chassis/motherboard/powersupply3 DEVPATH=/dev/input/by-path/platform-gpio-keys-event KEY=147 +DRIVER_BIND_DELAY_MS=1500 NAME=powersupply3 DRIVERS=/sys/bus/i2c/drivers/ibm-cffps,3-006b EXTRA_IFACES=xyz.openbmc_project.Inventory.Item.PowerSupply -- cgit v1.2.3