From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
Cc: john@phrozen.org, juhosg@openwrt.org, linux-mips@vger.kernel.org
Subject: Re: [PATCH] MIPS: pci-rt3883: Keep the legacy PCI host bound
Date: Sat, 5 Dec 2026 12:30:18 +0100 [thread overview]
Message-ID: <axP1yjCJfW0QBHNw@alpha.franken.de> (raw)
In-Reply-To: <20261130-7242f82796-u43-0@mail.sdu.edu.cn>
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 ]
prev parent reply other threads:[~2026-12-05 11:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axP1yjCJfW0QBHNw@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=john@phrozen.org \
--cc=juhosg@openwrt.org \
--cc=liguangshuo@mail.sdu.edu.cn \
--cc=linux-mips@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox