Thread (19 messages) 19 messages, 3 authors, 2021-06-21

Re: [RESEND PATCH V3 2/6] PCI: Use cached Device Capabilities 2 Register

flat view

From: Dongdong Liu <hidden>
Date: 2021-06-15 03:04:39
Also in: linux-media, linux-pci

On 2021/6/14 13:49, Christoph Hellwig wrote:
quoted
+			if (!(bridge->pcie_devcap2 & PCI_EXP_DEVCAP2_ATOMIC_ROUTE))
Overly long line.
Will fix.
quoted
+static void pci_init_devcap2(struct pci_dev *dev)
+{
+	if (!pci_is_pcie(dev))
+		return;
+
+	pcie_capability_read_dword(dev, PCI_EXP_DEVCAP2, &dev->pcie_devcap2);
+}
Wouldn't it make sene to merge this into set_pcie_port_type?
Good suggestion, will do.

Thanks,
Dongdong
.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help