Re: [PATCH v2 9/9] iommu/vt-d: Use pci core's DVSEC functionality

From
Christoph Hellwig <hch@infradead.org>
Date
2021-09-24 06:46:46
Also in
linux-cxl, linux-iommu, linux-pci
Reply to
Ben Widawsky, 2021-09-23
On Thu, Sep 23, 2021 at 10:26:47AM -0700, Ben Widawsky wrote:
quoted hunk ↗ jump to hunk
  */
 static int siov_find_pci_dvsec(struct pci_dev *pdev)
 {
+	return pci_find_dvsec_capability(pdev, PCI_VENDOR_ID_INTEL, 5);
 }
I hink the siov_find_pci_dvsec helper is pretty pointless now and can be
folded into its only caller.  And independent of that: this capability
really needs a symbolic name.  Especially for a vendor like Intel that
might have a few there should be a list of them somewhere.
Thread (24 messages) 24 messages, 8 authors, last reply 2021-10-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help