From: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
To: tsbogend@alpha.franken.de, ryazanov.s.a@gmail.com
Cc: linux-mips@vger.kernel.org
Subject: [PATCH] MIPS: ath25: Prevent manual unbind of the AR2315 PCI host
Date: Thu, 26 Nov 2026 16:30:11 +0800 [thread overview]
Message-ID: <20261126-a35bb25eb5-u35-0@mail.sdu.edu.cn> (raw)
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
next reply other threads:[~2026-11-26 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 8:30 Guangshuo Li [this message]
2026-12-05 11:29 ` [PATCH] MIPS: ath25: Prevent manual unbind of the AR2315 PCI host Thomas Bogendoerfer
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=20261126-a35bb25eb5-u35-0@mail.sdu.edu.cn \
--to=liguangshuo@mail.sdu.edu.cn \
--cc=linux-mips@vger.kernel.org \
--cc=ryazanov.s.a@gmail.com \
--cc=tsbogend@alpha.franken.de \
/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