[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YMbt6699/6r85MYy@infradead.org>
Date: Mon, 14 Jun 2021 06:49:31 +0100
From: Christoph Hellwig <hch@...radead.org>
To: Dongdong Liu <liudongdong3@...wei.com>
Cc: helgaas@...nel.org, hch@...radead.org, kw@...ux.com,
linux-pci@...r.kernel.org, rajur@...lsio.com,
hverkuil-cisco@...all.nl, linux-media@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [RESEND PATCH V3 2/6] PCI: Use cached Device Capabilities 2
Register
> + if (!(bridge->pcie_devcap2 & PCI_EXP_DEVCAP2_ATOMIC_ROUTE))
Overly long line.
> +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?
Powered by blists - more mailing lists