aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-keystone.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2018-10-17 03:41:11 -0400
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-10-17 04:59:00 -0400
commit0523cdc6e775494900c878af5f7eb7e90bb03f20 (patch)
tree50413ee5a716e81d1dc74275a3de36f27ad06c36 /drivers/pci/controller/dwc/pci-keystone.c
parent23fe5bd4be90099e760fe0d00665ab1e465255b3 (diff)
PCI: keystone: Use ERR_IRQ_STATUS instead of ERR_IRQ_STATUS_RAW to get interrupt status
Use ERR_IRQ_STATUS instead of ERR_IRQ_STATUS_RAW to get interrupt status. ERR_IRQ_STATUS_RAW has the status of the interrupts before masking whereas ERR_IRQ_STATUS has the status of the interrupts after masking. Since all the interrupts are unmasked here, use ERR_IRQ_STATUS. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
-rw-r--r--drivers/pci/controller/dwc/pci-keystone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c
index e181e6277323..c0bba7b604fa 100644
--- a/drivers/pci/controller/dwc/pci-keystone.c
+++ b/drivers/pci/controller/dwc/pci-keystone.c
@@ -80,7 +80,6 @@
80#define ERR_IRQ_ALL (ERR_AER | ERR_AXI | ERR_CORR | \ 80#define ERR_IRQ_ALL (ERR_AER | ERR_AXI | ERR_CORR | \
81 ERR_NONFATAL | ERR_FATAL | ERR_SYS) 81 ERR_NONFATAL | ERR_FATAL | ERR_SYS)
82#define ERR_FATAL_IRQ (ERR_FATAL | ERR_AXI) 82#define ERR_FATAL_IRQ (ERR_FATAL | ERR_AXI)
83#define ERR_IRQ_STATUS_RAW 0x1c0
84#define ERR_IRQ_STATUS 0x1c4 83#define ERR_IRQ_STATUS 0x1c4
85#define ERR_IRQ_ENABLE_SET 0x1c8 84#define ERR_IRQ_ENABLE_SET 0x1c8
86#define ERR_IRQ_ENABLE_CLR 0x1cc 85#define ERR_IRQ_ENABLE_CLR 0x1cc
@@ -249,7 +248,7 @@ static irqreturn_t ks_pcie_handle_error_irq(struct keystone_pcie *ks_pcie)
249{ 248{
250 u32 status; 249 u32 status;
251 250
252 status = ks_pcie_app_readl(ks_pcie, ERR_IRQ_STATUS_RAW) & ERR_IRQ_ALL; 251 status = ks_pcie_app_readl(ks_pcie, ERR_IRQ_STATUS);
253 if (!status) 252 if (!status)
254 return IRQ_NONE; 253 return IRQ_NONE;
255 254