mirror of
https://opendev.org/x/pyghmi
synced 2025-04-14 01:02:36 +00:00
Prefer first PCI device id
The 'base' device id in a multi-function device may be considered to be the first, rather than the last. Change-Id: I4f39b81fb0225b4221aeffc108c12388cf7a7ea1
This commit is contained in:
parent
7a3eb593d1
commit
b1a693a0e7
@ -796,7 +796,7 @@ class IMMClient(object):
|
||||
if venid is not None:
|
||||
bdata['PCI Vendor ID'] = '{0:04x}'.format(venid)
|
||||
devid = fundata.get(self.ADP_DEVID, None)
|
||||
if devid is not None:
|
||||
if devid is not None and 'PCI Device ID' not in bdata:
|
||||
bdata['PCI Device ID'] = '{0:04x}'.format(devid)
|
||||
venid = fundata.get(self.ADP_SUBVENID, None)
|
||||
if venid is not None:
|
||||
|
@ -1709,7 +1709,7 @@ class OEMHandler(generic.OEMHandler):
|
||||
if venid is not None:
|
||||
bdata['PCI Vendor ID'] = '{0:04x}'.format(venid)
|
||||
devid = fundata.get(self.ADP_DEVID, None)
|
||||
if devid is not None:
|
||||
if devid is not None and 'PCIE Device ID' not in bdata:
|
||||
bdata['PCI Device ID'] = '{0:04x}'.format(devid)
|
||||
venid = fundata.get(self.ADP_SUBVENID, None)
|
||||
if venid is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user