From b1b737b68153fcae65ad5acf09c8bac14f10b41e Mon Sep 17 00:00:00 2001 From: Kebo Liu Date: Mon, 29 Jan 2024 05:20:40 +0200 Subject: [PATCH 1/2] Extend the time to wait for EEPROM VPD file creation Signed-off-by: Kebo Liu --- platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py b/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py index f5b13f0ae4..5bef889ea6 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py @@ -51,7 +51,7 @@ if platform_name and 'simx' in platform_name: os.makedirs(os.path.dirname(EEPROM_SYMLINK)) subprocess.check_call(['/usr/bin/xxd', '-r', '-p', 'syseeprom.hex', EEPROM_SYMLINK], cwd=platform_path) -WAIT_EEPROM_READY_SEC = 10 +WAIT_EEPROM_READY_SEC = 20 class Eeprom(eeprom_tlvinfo.TlvInfoDecoder): From 4dae9e12b37ab87655d7ab3e04a2756610cb0b8b Mon Sep 17 00:00:00 2001 From: Kebo Liu Date: Mon, 29 Jan 2024 07:33:04 +0200 Subject: [PATCH 2/2] Update the file copy right header Signed-off-by: Kebo Liu --- platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py b/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py index 5bef889ea6..a16a039c4e 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2019-2021 NVIDIA CORPORATION & AFFILIATES. +# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. # Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License");