PCI: tegra194: Fix handling BME_CHGED event
authorOm Prakash Singh <omp@nvidia.com>
Wed, 23 Jun 2021 10:05:21 +0000 (15:35 +0530)
committerDom Cobley <popcornmix@gmail.com>
Thu, 14 Oct 2021 11:32:57 +0000 (12:32 +0100)
commit2e8b44b18d9c7555652e7928b3bf7c6ce9e7bff2
tree52654ebd456cecb0731e9066893c2876dfd2d139
parente0236035400af9563da5d4096ebe221ae17b49ad
PCI: tegra194: Fix handling BME_CHGED event

[ Upstream commit ceb1412c1c8ca5b28c4252bdb15f2f1f17b4a1b0 ]

In tegra_pcie_ep_hard_irq(), APPL_INTR_STATUS_L0 is stored in val and again
APPL_INTR_STATUS_L1_0_0 is also stored in val. So when execution reaches
"if (val & APPL_INTR_STATUS_L0_PCI_CMD_EN_INT)", val is not correct.

Link: https://lore.kernel.org/r/20210623100525.19944-2-omp@nvidia.com
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pcie-tegra194.c