* [PATCH] MIPS: pci-rt3883: Keep the legacy PCI host bound
@ 2026-11-29 16:29 Guangshuo Li
2026-12-05 11:30 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Guangshuo Li @ 2026-11-29 16:29 UTC (permalink / raw)
To: tsbogend, john, juhosg; +Cc: linux-mips
The PCI controller list and chained IRQ handler retain the RT3883 host
after a manual unbind. Keep the built-in host bound for the lifetime of
its PCI controller. Drop the parent interrupt mapping if the PCI IRQ
domain cannot be created.
This issue was found by our static analysis tool under development.
Fixes: 12d14e0edd4e ("MIPS: Add driver for the built-in PCI controller of the RT3883 SoC")
Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
---
arch/mips/pci/pci-rt3883.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/pci/pci-rt3883.c b/arch/mips/pci/pci-rt3883.c
index 7327d3768904..4393f27aaaf7 100644
--- a/arch/mips/pci/pci-rt3883.c
+++ b/arch/mips/pci/pci-rt3883.c
@@ -214,6 +214,7 @@ static int rt3883_pci_irq_init(struct device *dev,
rpc);
if (!rpc->irq_domain) {
dev_err(dev, "unable to add IRQ domain\n");
+ irq_dispose_mapping(irq);
return -ENODEV;
}
@@ -569,6 +570,7 @@ static struct platform_driver rt3883_pci_driver = {
.probe = rt3883_pci_probe,
.driver = {
.name = "rt3883-pci",
+ .suppress_bind_attrs = true,
.of_match_table = of_match_ptr(rt3883_pci_ids),
},
};
base-commit: dfe3ece66313fbfebc41a491f0f58b9b51fd8c14
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: pci-rt3883: Keep the legacy PCI host bound
2026-11-29 16:29 [PATCH] MIPS: pci-rt3883: Keep the legacy PCI host bound Guangshuo Li
@ 2026-12-05 11:30 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2026-12-05 11:30 UTC (permalink / raw)
To: Guangshuo Li; +Cc: john, juhosg, linux-mips
On Mon, Nov 30, 2026 at 12:29:46AM +0800, Guangshuo Li wrote:
> The PCI controller list and chained IRQ handler retain the RT3883 host
> after a manual unbind. Keep the built-in host bound for the lifetime of
> its PCI controller. Drop the parent interrupt mapping if the PCI IRQ
> domain cannot be created.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 12d14e0edd4e ("MIPS: Add driver for the built-in PCI controller of the RT3883 SoC")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
> ---
> arch/mips/pci/pci-rt3883.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/mips/pci/pci-rt3883.c b/arch/mips/pci/pci-rt3883.c
> index 7327d3768904..4393f27aaaf7 100644
> --- a/arch/mips/pci/pci-rt3883.c
> +++ b/arch/mips/pci/pci-rt3883.c
> @@ -214,6 +214,7 @@ static int rt3883_pci_irq_init(struct device *dev,
> rpc);
> if (!rpc->irq_domain) {
> dev_err(dev, "unable to add IRQ domain\n");
> + irq_dispose_mapping(irq);
> return -ENODEV;
> }
>
> @@ -569,6 +570,7 @@ static struct platform_driver rt3883_pci_driver = {
> .probe = rt3883_pci_probe,
> .driver = {
> .name = "rt3883-pci",
> + .suppress_bind_attrs = true,
> .of_match_table = of_match_ptr(rt3883_pci_ids),
> },
> };
>
> base-commit: dfe3ece66313fbfebc41a491f0f58b9b51fd8c14
> --
> 2.43.0
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-05 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 16:29 [PATCH] MIPS: pci-rt3883: Keep the legacy PCI host bound Guangshuo Li
2026-12-05 11:30 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox