From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796212519; b=olN/ox+7JSEe49KSwTzgNror/kO990Xjfh2fV/e8RwjKxiF9qp50ulipvos3vMvLUVxr rZ0i7goK/qmWIp36PUCAVJ+6yqgw6qnTEkrgOg5Q4nZPdWp395tTNlZsnSb951tyJzAR1 4+97Dg6P4lTILYqQEzvyIUjtdUNNFjJFAMo702eTTb/7hxC/hNFinH/vaV8vQi/7/whMP Nf6pj3AyXj9EppP75zd8cdG/Kjz1RwtPIGJwGZoCAZVXk9FFzM+WEl/uf2IABEXrHfZAZ ReUxfRp5kDtXOeE/z2+rI6Db+xbmYBpVpmPtgB2S4tfR7oleHEGJ8OyL5TrC2Cirm9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796212519; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=3HvlnIWK/mXGSOPBvlbGEtx2wqoP4czMhk6Z88HNQ7w=; b=vUP6hu2JgFQV7iGqE8GkmI9/mxNEavSfyOsynIrBMaQIw4/qJrjLmapZ2efrnbE2vnQB yI6lCzW8lE51CedpkB91brVqiYIHzZ1VKRs948ciPPvErfMmpe2ceut7fEdz5wNuB9EEm P9v9x4J4iqUkgS+qqEDxzxxLvfWBeouNIu9gGW6pav/K3zwl1UMN1BYgCyP4i17+ExrOX infiPjP1m6wlhWRkuVkQb+zPxkBG5uvUto6Epi6opNn46tlzKVB4I0N4JxeYbS+LKDOWz BYjB5w2o1h+fgXwpnymUHdsbPez5eCndqGuRqHWcuW+B5nhVBLqP2mlC6kbeX+4CM0A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oBLlioi+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 3F64E606A31A; Wed, 2 Dec 2026 11:55:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oBLlioi+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 689F31F00919; Wed, 2 Dec 2026 11:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796212518; bh=3HvlnIWK/mXGSOPBvlbGEtx2wqoP4czMhk6Z88HNQ7w=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=oBLlioi+kZeI6TfaGi6Wjrf8iXYvUg4hvZLKOd7tqLFOXrZyV6Tt+Cgg9jQfk2KJf X5fzq46HurThshM8jubxhNq71SRyZeRx/jZpLSoVo75EA0VBHIT2xKDhFqW/la1zDz bvXN7oq63QLty9Bt0WfFoOfBEbhTQn7+33jQYcvO2quX5hFdP7g19usUuK/ghFAk4V dX6JnQfvEozzQCZuUiNZi6HMEOEZEu42LiPUHSo3+vjHQD/1jMf4IcoBO5dGQyI2RX 8NSNwHyeyW4nwOVqPtDVu8VZNth8Vl/Xi4FTAWnNL73YYdsXDtWSCjn7B5t/2F6N54 EeIt2QrrL8Zpg== Message-ID: Date: Wed, 2 Dec 2026 13:55:13 +0200 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 05/14] PCI: rzg3s-host: Initialize the IRQ domains after the IRQs are masked To: Manivannan Sadhasivam Cc: lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org, robh@kernel.org, bhelgaas@google.com, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com, claudiu.beznea@tuxon.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Claudiu Beznea , stable@vger.kernel.org References: <20261019065025.2146539-1-claudiu.beznea@kernel.org> <20261019065025.2146539-6-claudiu.beznea@kernel.org> <179562538809.5580.13436039230126479202.b4-reply@b4> Content-Language: en-US From: Claudiu Beznea In-Reply-To: <179562538809.5580.13436039230126479202.b4-reply@b4> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/25/26 18:49, Manivannan Sadhasivam wrote: > On 2026-10-19 09:50 +0300, Claudiu Beznea wrote: >> From: Claudiu Beznea >> >> The IRQ domain initialization requests the interrupts and installs the >> chained handlers before rzg3s_pcie_irq_init() masks the controller >> interrupt sources. An interrupt left enabled (e.g. by the bootloader, >> or latched from a previous controller state) could therefore fire >> before the controller initialization is complete and be handled on >> half-initialized state. >> >> Move the IRQ domain initialization after rzg3s_pcie_irq_init(), so that >> all the interrupt sources are masked by the time the handlers are >> installed. >> >> Fixes: 7ef502fb35b2 ("PCI: Add Renesas RZ/G3S host controller driver") >> Cc: stable@vger.kernel.org >> Signed-off-by: Claudiu Beznea >> --- >> >> Changes in v7: >> - none, this patch is new >> >> drivers/pci/controller/pcie-rzg3s-host.c | 31 ++++++++++++------------ >> 1 file changed, 15 insertions(+), 16 deletions(-) >> >> diff --git a/drivers/pci/controller/pcie-rzg3s-host.c b/drivers/pci/controller/pcie-rzg3s-host.c >> index cc985020d962..94345d6f0bee 100644 >> --- a/drivers/pci/controller/pcie-rzg3s-host.c >> +++ b/drivers/pci/controller/pcie-rzg3s-host.c >> @@ -1418,7 +1418,10 @@ static int rzg3s_pcie_host_init_port(struct rzg3s_pcie_host *host) >> return ret; >> } >> >> -static int rzg3s_pcie_host_init(struct rzg3s_pcie_host *host) >> +static int >> +rzg3s_pcie_host_init(struct rzg3s_pcie_host *host, > > This split seems unnecessary. This is here to avoid "CHECK: Alignment should match open parenthesis" from checkpatch.pl and at the same time keep the line 80 chars long as previously requested by Bjorn on this driver. Thank you, Claudiu