From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 37944E71D27 for ; Fri, 29 Sep 2023 12:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8IADQQMketJ5URn7KWlM1MmHMQeEkdHHddTOGoqaEE8=; b=1pZyCPqTnHhe2P Dt1tpM2KU6HOedV0MmeA24t8lDxgcHxQtXUmfylZQ8wg9YYMN/Q1xd8nJa97yupFhgE1lwo2avabn 3t53Z9zB5Fg4iJGkV5d6cLaxXkGiI7wL3xQHgMJG5yEmT2+CAHqNYkZvWIdtOqN+SRb7QsyOynWuA 3dxcLwMHWMnInXaYxQW7ZwBMBWwtE+fpE9GPHiQVjMdBFC7THwvi1nGmaPxAJXtfVkXIDqxT0DXQp aW4gPrKFQf5QJJ8leIignWfFJZGVPCBo/EiIpPOK/CNUZ6kLnuEhAyPs6T/R4Qq98/H5Z2cTya//9 nKqzqsGYsp2kCIvSAAig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qmCg1-007tTh-2N; Fri, 29 Sep 2023 12:33:01 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qmCfy-007tTJ-26 for linux-riscv@lists.infradead.org; Fri, 29 Sep 2023 12:32:59 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id ADC4161EC6; Fri, 29 Sep 2023 12:32:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FFC7C433C8; Fri, 29 Sep 2023 12:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695990777; bh=1Bo4FZNzqybjVrw58i9A7aUqAJ5AK5epSxmtyX6LO3Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mp8Om77UtnPoeFBHs1iuvcmOn5u/zQUtgAuCvlYumujvVwP2RZcByMalV6vzeqcF2 sekzx0/SBomc+dE8UGDCskzK+T7mlg3E0ADdcesQ9614e+9E+3d3oLUfJrOvxXhHEW gFvnmmvXClzQachJhaTCix4fUI1M1IILaIIol6Vh27M4jPZelGWeXLOWelMhmZRLw4 K77zZQWETq88pE3D5oIyVAPlVHF8r2lErC4XVdw5QOHGtL3E92PcH0iSrn3eDGeWRQ WCJWDP5dLFDW9V5t6exraTcT6Oo6/do3Xob9Sl40rMe7eT2mRweWrmSRBIpL3+fUvc bDcIlOEiK8Vag== Received: from [85.255.233.37] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qmCfu-00HFD4-CN; Fri, 29 Sep 2023 13:32:54 +0100 Date: Fri, 29 Sep 2023 13:32:52 +0100 Message-ID: <87bkdlma6j.wl-maz@kernel.org> From: Marc Zyngier To: Anup Patel Subject: Re: [PATCH v9 05/15] irqchip/sifive-plic: Convert PLIC driver into a platform driver In-Reply-To: <20230928061207.1841513-6-apatel@ventanamicro.com> References: <20230928061207.1841513-1-apatel@ventanamicro.com> <20230928061207.1841513-6-apatel@ventanamicro.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 85.255.233.37 X-SA-Exim-Rcpt-To: apatel@ventanamicro.com, palmer@dabbelt.com, paul.walmsley@sifive.com, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, frowand.list@gmail.com, conor+dt@kernel.org, atishp@atishpatra.org, ajones@ventanamicro.com, sunilvl@ventanamicro.com, saravanak@google.com, anup@brainfault.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230929_053258_799497_B0FA00DE X-CRM114-Status: GOOD ( 17.63 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Conor Dooley , Saravana Kannan , Anup Patel , Atish Patra , linux-kernel@vger.kernel.org, Rob Herring , Palmer Dabbelt , Krzysztof Kozlowski , Paul Walmsley , Thomas Gleixner , Frank Rowand , linux-riscv@lists.infradead.org, Andrew Jones Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Thu, 28 Sep 2023 07:11:57 +0100, Anup Patel wrote: > > The PLIC driver does not require very early initialization so let > us convert it into a platform driver. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > As part of the conversion, the PLIC probing undergoes the following > changes: > 1. Use dev_info(), dev_err() and dev_warn() instead of pr_info(), > pr_err() and pr_warn() > 2. Use devm_xyz() APIs wherever applicable > 3. PLIC is now probed after CPUs are brought-up so we have to > setup cpuhp state after context handler of all online CPUs > are initialized otherwise we see crash on multi-socket systems > > Signed-off-by: Anup Patel > --- > drivers/irqchip/irq-sifive-plic.c | 242 +++++++++++++++++++----------- > 1 file changed, 154 insertions(+), 88 deletions(-) > [...] > +core_initcall(plic_init); Or not. There are only two choices: either you absolutely require early init, and you stick with the current situation, or you don't, and you can rely on dependencies. I'm not prepared to have a third option. M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv