]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6811f80fcacf3ebbbf57d752a8d64d0ae1c4f794
treefee1e1c44d3d982bfbc1737fa6d2b7796db1001b
parent78f0a5f86683713bf30eae653c023ab078a37264
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: e4af7edf56a9 ("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