summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-common
diff options
context:
space:
mode:
authorThang Tran <thuutran@amperecomputing.com>2022-03-17 09:43:39 +0300
committerThang Tran <thuutran@amperecomputing.com>2022-03-17 11:26:57 +0300
commita8a764a53c9e3b3ba6ef724b37ba3c18ab96f1e6 (patch)
treef777ae5e8d553a510e03665c5167795cc4baf702 /meta-ampere/meta-common
parentf1bae575184345e6d0297449fda3d97fcc01268a (diff)
downloadopenbmc-a8a764a53c9e3b3ba6ef724b37ba3c18ab96f1e6.tar.xz
meta-ampere: fix parameters in power control services
When HOST is turned on/off, ampere-gpio-poweroff/on@.service is called. They should not call op-wait-power-off/on@.service, just wait for them. Remove redundant "Requires" and "Wants" in service files. Add timeout to obmc-flash-host-bios@.service to avoid blocking power control. Tested: 1. Turn on/off the HOST power. 2. Check journalctl log to ensure that op-wait-power-off/on@.service are not called by ampere-gpio-poweroff/on@.service. Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: If9403891b2e57c73c4fd8e0ea1b24314b7b0c3f8
Diffstat (limited to 'meta-ampere/meta-common')
-rw-r--r--meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service b/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service
index 036b78928b..d71cd479c5 100644
--- a/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service
+++ b/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service
@@ -5,3 +5,4 @@ Description=Ampere service for flashing the Host firmware image
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/sbin/firmware_update.sh /tmp/images/%I
+TimeoutSec=300