From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
Cc: ryazanov.s.a@gmail.com, linux-mips@vger.kernel.org
Subject: Re: [PATCH] MIPS: ath25: Prevent manual unbind of the AR2315 PCI host
Date: Sat, 5 Dec 2026 12:29:21 +0100 [thread overview]
Message-ID: <axP1kU8Ph9JfnNhT@alpha.franken.de> (raw)
In-Reply-To: <20261126-a35bb25eb5-u35-0@mail.sdu.edu.cn>
On Thu, Nov 26, 2026 at 04:30:11PM +0800, Guangshuo Li wrote:
> The built-in AR2315 host registers a permanent PCI controller and
> interrupt cascade. Unbinding the platform driver frees their
> device-managed state while both registrations remain live. Suppress the
> bind attributes for this board-created host.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 3ed7a2a702dc ("MIPS: ath25: add AR2315 PCI host controller driver")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
> ---
> arch/mips/pci/pci-ar2315.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/mips/pci/pci-ar2315.c b/arch/mips/pci/pci-ar2315.c
> index f72802e6c29a..9c3293a4ed3b 100644
> --- a/arch/mips/pci/pci-ar2315.c
> +++ b/arch/mips/pci/pci-ar2315.c
> @@ -499,6 +499,7 @@ static struct platform_driver ar2315_pci_driver = {
> .probe = ar2315_pci_probe,
> .driver = {
> .name = "ar2315-pci",
> + .suppress_bind_attrs = true,
> },
> };
>
>
> base-commit: 4dce97c6c265544342e716e62fd24bbb232590c5
> --
> 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-26 8:30 [PATCH] MIPS: ath25: Prevent manual unbind of the AR2315 PCI host Guangshuo Li
2026-12-05 11:29 ` 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=axP1kU8Ph9JfnNhT@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=liguangshuo@mail.sdu.edu.cn \
--cc=linux-mips@vger.kernel.org \
--cc=ryazanov.s.a@gmail.com \
/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