Skip to content

Commit 12d84de

Browse files
xdarklightgregkh
authored andcommitted
PCI: intel-gw: Fix INTx enable
[ Upstream commit 655832d ] The legacy PCI interrupt lines need to be enabled using PCIE_APP_IRNEN bits 13 (INTA), 14 (INTB), 15 (INTC) and 16 (INTD). The old code however was taking (for example) "13" as raw value instead of taking BIT(13). Define the legacy PCI interrupt bits using the BIT() macro and then use these in PCIE_APP_IRN_INT. Link: https://lore.kernel.org/r/20210106135540.48420-1-martin.blumenstingl@googlemail.com Fixes: ed22aaa ("PCI: dwc: intel: PCIe RC controller driver") Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rahul Tanwar <rtanwar@maxlinear.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b5859da commit 12d84de

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎drivers/pci/controller/dwc/pcie-intel-gw.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
#define PCIE_APP_IRN_PM_TO_ACK BIT(9)
4040
#define PCIE_APP_IRN_LINK_AUTO_BW_STAT BIT(11)
4141
#define PCIE_APP_IRN_BW_MGT BIT(12)
42+
#define PCIE_APP_IRN_INTA BIT(13)
43+
#define PCIE_APP_IRN_INTB BIT(14)
44+
#define PCIE_APP_IRN_INTC BIT(15)
45+
#define PCIE_APP_IRN_INTD BIT(16)
4246
#define PCIE_APP_IRN_MSG_LTR BIT(18)
4347
#define PCIE_APP_IRN_SYS_ERR_RC BIT(29)
4448
#define PCIE_APP_INTX_OFST 12
@@ -48,10 +52,8 @@
4852
PCIE_APP_IRN_RX_VDM_MSG | PCIE_APP_IRN_SYS_ERR_RC | \
4953
PCIE_APP_IRN_PM_TO_ACK | PCIE_APP_IRN_MSG_LTR | \
5054
PCIE_APP_IRN_BW_MGT | PCIE_APP_IRN_LINK_AUTO_BW_STAT | \
51-
(PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTA) | \
52-
(PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTB) | \
53-
(PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTC) | \
54-
(PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTD))
55+
PCIE_APP_IRN_INTA | PCIE_APP_IRN_INTB | \
56+
PCIE_APP_IRN_INTC | PCIE_APP_IRN_INTD)
5557

5658
#define BUS_IATU_OFFSET SZ_256M
5759
#define RESET_INTERVAL_MS 100

0 commit comments

Comments
 (0)