aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-aardvark.c
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2018-05-24 14:36:21 +0000
committerLorenzo Pieralisi <[email protected]>2018-05-24 17:39:59 +0000
commit1aea58be739816f05232c64f970784d75a84cd96 (patch)
tree8dacbee3fdd36b1fa8a4e6f28246d3d48abc8359 /drivers/pci/controller/pci-aardvark.c
parentPCI: rcar: Add missing irq_dispose_mapping() into failpath (diff)
downloadkernel-1aea58be739816f05232c64f970784d75a84cd96.tar.gz
kernel-1aea58be739816f05232c64f970784d75a84cd96.zip
PCI: rcar: Teardown MSI setup if rcar_pcie_enable() fails
If the rcar_pcie_enable() fails and MSIs are enabled, the setup done in rcar_pcie_enable_msi() is never undone. Add a function to tear down the MSI setup by disabling the MSI handling in the PCIe block, deallocating the pages requested for the MSIs and zapping the IRQ mapping. Reported-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Simon Horman <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Lorenzo Pieralisi <[email protected]> Cc: Phil Edworthy <[email protected]> Cc: Simon Horman <[email protected]> Cc: Wolfram Sang <[email protected]> Cc: [email protected]
Diffstat (limited to 'drivers/pci/controller/pci-aardvark.c')
0 files changed, 0 insertions, 0 deletions