Commit f5ec5a07 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Bjorn Helgaas

PCI/DPC: Push dpc->rp_pio_status assignment into dpc_rp_pio_get_info()

Move the dpc->rp_pio_status assignment into dpc_rp_pio_get_info() since
that's where we read rp_pio->status anway.  No functional change intended.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarKeith Busch <keith.busch@intel.com>
Reviewed-by: default avatarSinan Kaya <okaya@codeaurora.org>
parent a88b304e
...@@ -158,6 +158,8 @@ static void dpc_rp_pio_get_info(struct dpc_dev *dpc, ...@@ -158,6 +158,8 @@ static void dpc_rp_pio_get_info(struct dpc_dev *dpc,
dev_err(dev, "rp_pio_status: %#010x, rp_pio_mask: %#010x\n", dev_err(dev, "rp_pio_status: %#010x, rp_pio_mask: %#010x\n",
rp_pio->status, rp_pio->mask); rp_pio->status, rp_pio->mask);
dpc->rp_pio_status = rp_pio->status;
pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY,
&rp_pio->severity); &rp_pio->severity);
pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SYSERROR, pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SYSERROR,
...@@ -213,7 +215,6 @@ static void dpc_process_rp_pio_error(struct dpc_dev *dpc) ...@@ -213,7 +215,6 @@ static void dpc_process_rp_pio_error(struct dpc_dev *dpc)
dpc_rp_pio_get_info(dpc, &rp_pio_regs); dpc_rp_pio_get_info(dpc, &rp_pio_regs);
dpc->rp_pio_status = rp_pio_regs.status;
} }
static irqreturn_t dpc_irq(int irq, void *context) static irqreturn_t dpc_irq(int irq, void *context)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment