Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: ath25: Prevent manual unbind of the AR2315 PCI host
@ 2026-11-26  8:30 Guangshuo Li
  2026-12-05 11:29 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Guangshuo Li @ 2026-11-26  8:30 UTC (permalink / raw)
  To: tsbogend, ryazanov.s.a; +Cc: linux-mips

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: ath25: Prevent manual unbind of the AR2315 PCI host
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2026-12-05 11:29 UTC (permalink / raw)
  To: Guangshuo Li; +Cc: ryazanov.s.a, linux-mips

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 ]

^ 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-26  8:30 [PATCH] MIPS: ath25: Prevent manual unbind of the AR2315 PCI host Guangshuo Li
2026-12-05 11:29 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox