Skip to content

Commit 0c36cdd

Browse files
committed
Revert "[mellanox] Use 'mlxfwmanager -d' for specifying MST device in FW burn operation."
This reverts commit 088c240.
1 parent 088c240 commit 0c36cdd

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

platform/mellanox/mlnx-fw-upgrade.j2

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ declare -rA FW_FILE_MAP=( \
3636
[$SPC3_ASIC]="/etc/mlnx/fw-SPC3.mfa" \
3737
)
3838

39-
declare -rA MST_DEVICE_MAP=( \
40-
[$SPC1_ASIC]="/dev/mst/mt52100_pci_cr0" \
41-
[$SPC2_ASIC]="/dev/mst/mt53100_pci_cr0" \
42-
[$SPC3_ASIC]="/dev/mst/mt53104_pci_cr0" \
43-
)
44-
4539
IMAGE_UPGRADE="${NO_PARAM}"
4640
VERBOSE_LEVEL="${VERBOSE_MIN}"
4741

@@ -181,11 +175,6 @@ function UpgradeFW() {
181175
ExitFailure "failed to detect ASIC type"
182176
fi
183177

184-
local -r _MST_DEVICE="${MST_DEVICE_MAP[$_ASIC_TYPE]}"
185-
if [ ! -c "${_MST_DEVICE}" ]; then
186-
ExitFailure "no such device: ${_MST_DEVICE}"
187-
fi
188-
189178
if [ ! -z "${_FS_MOUNTPOINT}" ]; then
190179
local -r _FW_FILE="${_FS_MOUNTPOINT}/${FW_FILE_MAP[$_ASIC_TYPE]}"
191180
else
@@ -218,7 +207,7 @@ function UpgradeFW() {
218207
ExitSuccess "firmware is up to date"
219208
else
220209
LogNotice "firmware upgrade is required. Installing compatible version..."
221-
RunCmd "${BURN_CMD} -d ${_MST_DEVICE} -i ${_FW_FILE}"
210+
RunCmd "${BURN_CMD} -i ${_FW_FILE}"
222211
fi
223212
}
224213

0 commit comments

Comments
 (0)