Message ID | 20210219022359.435-1-qiuxu.zhuo@intel.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [v2,1/1] PCI/RCEC: Fix RCiEP capable devices RCEC association | expand |
[+cc Lorenzo for visiblity] Hi, [...] > Fix rcec_assoc_rciep() using the PCI_SLOT() macro and convert the value > of "rciep->devfn" to a device number to ensure that the RCiEP devices > associated with the RCEC are linked when the RCEC is enumerated. > > [ Krzysztof: Update commit message. ] [...] Thank you! I appreciate that. However, we probably should drop this from the commit message. Perhaps either Bjorn or Lorenzo could do it when applying changes. Krzysztof
> ... > > [ Krzysztof: Update commit message. ] > [...] > > Thank you! I appreciate that. However, we probably should drop this from the > commit message. Perhaps either Bjorn or Lorenzo could do it when applying > changes. OK, will send out the v3 that drops "[ Krzysztof: Update commit message. ]" from the commit message. -Qiuxu
diff --git a/drivers/pci/pcie/rcec.c b/drivers/pci/pcie/rcec.c index 2c5c552994e4..d0bcd141ac9c 100644 --- a/drivers/pci/pcie/rcec.c +++ b/drivers/pci/pcie/rcec.c @@ -32,7 +32,7 @@ static bool rcec_assoc_rciep(struct pci_dev *rcec, struct pci_dev *rciep) /* Same bus, so check bitmap */ for_each_set_bit(devn, &bitmap, 32) - if (devn == rciep->devfn) + if (devn == PCI_SLOT(rciep->devfn)) return true; return false;