mbox series

[v2,0/1] PCI: Replace pci_find_ext_capability() calls with pci_dev aer_cap

Message ID 1517453625-13110-1-git-send-email-fred@fredlawl.com
Headers show
Series PCI: Replace pci_find_ext_capability() calls with pci_dev aer_cap | expand

Message

Frederick Lawler Feb. 1, 2018, 2:53 a.m. UTC
Hello,

I replaced certain pci_find_ext_capability(..., PCI_EXT_CAP_ID_ERR) calls
with pci_dev's aer_cap.

Since I do not have a computer with a PCIe device with the Advanced Error
Reporting capability, these changes have not been tested with
CONFIG_PCIEAER=y set on a machine that has a capable device.

V2:
* Reset program_hpp_type2() in probe.c back to its original state

Frederick Lawler (1):
  PCI: Replace pci_find_ext_capability() calls with pci_dev aer_cap

 drivers/pci/pcie/aer/aer_inject.c |  4 ++--
 drivers/pci/pcie/aer/ecrc.c       |  4 ++--
 drivers/pci/pcie/portdrv_core.c   | 15 +++++++++++----
 3 files changed, 15 insertions(+), 8 deletions(-)

Comments

Bjorn Helgaas Feb. 22, 2018, 11:45 p.m. UTC | #1
On Wed, Jan 31, 2018 at 08:53:44PM -0600, Frederick Lawler wrote:
> Hello,
> 
> I replaced certain pci_find_ext_capability(..., PCI_EXT_CAP_ID_ERR) calls
> with pci_dev's aer_cap.
> 
> Since I do not have a computer with a PCIe device with the Advanced Error
> Reporting capability, these changes have not been tested with
> CONFIG_PCIEAER=y set on a machine that has a capable device.
> 
> V2:
> * Reset program_hpp_type2() in probe.c back to its original state
> 
> Frederick Lawler (1):
>   PCI: Replace pci_find_ext_capability() calls with pci_dev aer_cap
> 
>  drivers/pci/pcie/aer/aer_inject.c |  4 ++--
>  drivers/pci/pcie/aer/ecrc.c       |  4 ++--
>  drivers/pci/pcie/portdrv_core.c   | 15 +++++++++++----
>  3 files changed, 15 insertions(+), 8 deletions(-)

Applied to pci/aer for v4.17, thanks!