Skip to content

Commit c9b0459

Browse files
itayav17ogalbxela
authored andcommitted
Revert "mstfwreset | remove socket direct validation to identify pcie switch"
This reverts commit 3ab0647.
1 parent ae7f3bd commit c9b0459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

small_utils/mstfwreset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ def is_pcie_switch_device(devid, reg_access_obj=None, dbdf=None):
14591459
else:
14601460
dev_dbdf_bus = int(dbdf.split(':')[1], 16) # dbdf is a string variable in base 16
14611461
logger.debug('MPIR bus: 0x{0:X}, dbdf: {1}, dev_dbdf_bus: 0x{2:X}, sdm: {3}'.format(bus, dbdf, dev_dbdf_bus, sdm))
1462-
if bus != dev_dbdf_bus:
1462+
if bus != dev_dbdf_bus and sdm == 0:
14631463
logger.debug("Found a PCIE switch device")
14641464
res = True
14651465
except BaseException:

0 commit comments

Comments
 (0)