[PATCH v5 2/7] PCI: mediatek-gen3: Move mtk_pcie_setup_irq() out of mtk_pcie_setup()
Bartosz Golaszewski
brgl at kernel.org
Wed Mar 11 01:18:32 PDT 2026
On Wed, 11 Mar 2026 08:52:17 +0100, Chen-Yu Tsai <wenst at chromium.org> said:
> mtk_pcie_setup_irq() just sets up the IRQ domains for PCI INTx and MSI,
> and chains them to the controller's interrupt. It's not really related
> to the setup of the actual PCIe controller.
>
> Move the mtk_pcie_setup_irq() call out of and before mtk_pcie_setup(),
> and add a proper error message for when it fails. Reorder
> mtk_pcie_irq_teardown() in the remove callback to follow. Also create
> an error path in the probe function.
>
> Suggested-by: Bjorn Helgaas <helgaas at kernel.org>
> Link: https://lore.kernel.org/all/20260309215056.GA603013@bhelgaas/
> Signed-off-by: Chen-Yu Tsai <wenst at chromium.org>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
More information about the Linux-mediatek
mailing list