From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796470554; b=ekGoNcPd0JWYNifpIx5gwNcpvraoc6oJcBmNWjHIf24dF6h70zfmkahnWqI5UCcscryt 01RvuhXos91tfuIB1qAf2pWGko5KkVxcSSxUwjZ1h4J+8We6Nwry/BmNogACU16A5Erih ka8s01+wjfp/EhJCl01bWDR+LMuKqQxw1C5EircxT1YoI23sZezZNISVdUmBo868aS2H7 FLmLGFXvaFQnlEnmz4s4LgU3lem8cT4Gmt45VQ/3Z59Ro7HXLBMOl0gAB0LkZdjUFgVhA o+1pzTi2iUHUe1j/8tRBJ5xvZROCTaNQv3q4Y/RtN/atMMJssULGexY2h8xu/w1pHig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796470554; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=O61+039lj4THs8ouOKkadAUkYfc6+RHmanaMDc6nF9w=; b=VHU54Erh/EnJ0stLjq0caT1KJj7zS/rkENTqRmnLMQOhEXTKuEwB+tzz18kJDzFMAThY PGwwI/bVzqwr6deRum/Rcc5D1z9e1/mu7eXI5mOAwjrqrOnCad7XzaS0FpJrKkWQe4qRQ rl961g6mojs7kQI+Ccc/Oe8uruk0Xf++5fXhmwTsGLB3HfODBXKJRb/+quRotChs4GKFr zOu0G3wW49Cp/qonsSWTdmDWrkJXBNWEbHOIktwg0PWkw8yCVEnBKO/NDZC1RFlWIj1GC RtTj9Et+fw9HNIqRo3dzznG86UITLYSV9H32VAhlMmk7hsHjw25+fZhTe1ETwNZsOBA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55B14606A32F for ; Sat, 5 Dec 2026 11:35:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 55B14606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: by elvis.franken.de (Postfix, from userid 10) id 27208100454; Sat, 5 Dec 2026 12:35:51 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id 29B49C081A; Sat, 5 Dec 2026 12:30:18 +0100 (CET) Date: Sat, 5 Dec 2026 12:30:18 +0100 From: Thomas Bogendoerfer To: Guangshuo Li Cc: john@phrozen.org, juhosg@openwrt.org, linux-mips@vger.kernel.org Subject: Re: [PATCH] MIPS: pci-rt3883: Keep the legacy PCI host bound Message-ID: References: <20261130-7242f82796-u43-0@mail.sdu.edu.cn> X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > --- > 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 ]