PCI: dra7xx: Use threaded IRQ handler for "dra7xx-pcie-main" IRQ
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 24 Jan 2023 07:11:54 +0000 (12:41 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 13 Feb 2023 22:26:45 +0000 (07:26 +0900)
commitda87d35a6e51480703d6f055e7a1b52c85731d7e
tree50c8d6f5a5ed8d5f08804b7f3d2b9c0281e5a594
parent1b929c02afd37871d5afb9d498426f83432e71c2
PCI: dra7xx: Use threaded IRQ handler for "dra7xx-pcie-main" IRQ

The "dra7xx-pcie-main" hard IRQ handler is just printing the IRQ status
and calling the dw_pcie_ep_linkup() API if LINK_UP status is set. But the
execution of dw_pcie_ep_linkup() depends on the EPF driver and may take
more time depending on the EPF implementation.

In general, hard IRQ handlers are supposed to return quickly and not block
for so long. Moreover, there is no real need of the current IRQ handler to
be a hard IRQ handler. So switch to the threaded IRQ handler for the
"dra7xx-pcie-main" IRQ.

Link: https://lore.kernel.org/linux-pci/20230124071158.5503-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/controller/dwc/pci-dra7xx.c