PCI: intel-gw: Fix INTx enable
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Wed, 6 Jan 2021 13:55:40 +0000 (14:55 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Jun 2021 19:44:13 +0000 (14:44 -0500)
commit655832d12f2251e04031294f547c86935a0a126d
treefee1e1c44d3d982bfbc1737fa6d2b7796db1001b
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
PCI: intel-gw: Fix INTx enable

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: ed22aaaede44 ("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>
drivers/pci/controller/dwc/pcie-intel-gw.c