On Tue, Apr 02, 2024 at 04:45:30PM -0700, Dave Jiang wrote: > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -4927,10 +4927,55 @@ static int pci_dev_reset_slot_function(struct pci_dev *dev, bool probe) > return pci_reset_hotplug_slot(dev->slot->hotplug, probe); > } > > +static int cxl_port_dvsec(struct pci_dev *dev) > +{ > + return pci_find_dvsec_capability(dev, PCI_VENDOR_ID_CXL, > + PCI_DVSEC_CXL_PORT); > +} Hm, seems a bit odd that this returns an int even though pci_find_dvsec_capability() returns a u16 and all the callers of cxl_port_dvsec() seem to assign the return value to a u16 as well. Is the "int" on purpose? Thanks, Lukas