Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8670957rwi; Tue, 25 Oct 2022 09:23:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4S/GWq6V7gIxWYscT/JXHYDLiV9H/hs5vawrxqrBFJjLAaXbUtgmYyIgzlS/M5mejZFKFt X-Received: by 2002:a17:907:9627:b0:78d:a7d8:9407 with SMTP id gb39-20020a170907962700b0078da7d89407mr33115526ejc.675.1666715007591; Tue, 25 Oct 2022 09:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666715007; cv=none; d=google.com; s=arc-20160816; b=B+/rDh2pD3blVmNiK/6hH7F37K923lCcR9+1PENRMQGYq6/Vy9SgshBCzkuZHR44h4 zhZYF7mtbdY5kjcWk/FRUxnqNwRE/gXN1WyiVK9t0cnlHJ69hATe4RinAJKYMZBawN/Q 9pFSQTaGSmarYklIDRte4fkvgPVwAGDkNwuxJoO/COwDR76WoQSgiguCQpNtCz7NqNQB pgaZziDToG0LymWqePs2zh/quF8pTTl9bfnNZdsQEzRQDwPbaVHKtFilDm+BIHzWd7Bw 0QYM3PsNWyouvrJvHAza6guVS6G/Rg7VJpHrTyX1JHXwW0VuG9OHrGwsaW3uWwDSE97o m0gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=C6UbVAonXzXEF4tPDCKPCg7WA+lFJIW3l1l+LGaIaaE=; b=VLJhTfryK62Arv6xZfGwB8dTqZzBWsr3K/ZIHp80Z1sGZuZ8K2mDSFgJqqQcMyIXND GUWgyteQ171CJnFS74qkcM499GtqPqNKwc4xcBCNWPg3FxWb0EO9DjLd/P4jsx2C3uTW z5ijhuMqdEUPUVEoWjaeiJiChgqEDcp4i/GIC8j//OmItXkbQ1odjDvoyeJmED7PvJ6l oZNnyPnRG+aXOhqLZCwa1P0EjBckl/B70EXQpBwc+F3zBtjZHaX/Tz4HdLv7CgCZhmwp lQ1X9pMoTzU2i30yxnZrJPL96btX+87waOf5fWXf/9LTLZaYTWc0AHMQ3nhJiM9xcUhz /fcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RjpvOL7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx3-20020a170907774300b0078b41dcf4b8si2965340ejc.479.2022.10.25.09.23.02; Tue, 25 Oct 2022 09:23:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RjpvOL7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232399AbiJYQPd (ORCPT + 99 others); Tue, 25 Oct 2022 12:15:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233146AbiJYQPb (ORCPT ); Tue, 25 Oct 2022 12:15:31 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 128DD36BC1; Tue, 25 Oct 2022 09:15:30 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id kt23so8306986ejc.7; Tue, 25 Oct 2022 09:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C6UbVAonXzXEF4tPDCKPCg7WA+lFJIW3l1l+LGaIaaE=; b=RjpvOL7MSyyleyOkn8duD/qRqvUDoc6ReK96YgdY5m0G5KbDzB58n9ZiozO5uLkYzl WGKrhs3fXBqlLFh2WalirQ+LuFXGXrw0T65oKEfXNv6vKU6fdrvf5mkPLCnqYg4GG9AD zl3lgzL9PGDRBLuN1Dz3NdxNQIuTw1Zdb4eAtSKWLAcAUqVenhNFXJkDG3Td3vkrZqkI +ZUIotgvcfu2D+YHA7WPGU+B7km+CGQsyfDuY5jkALCn7i7b67de2tO4HitSy7IBPvIX YpEu8r8wj5RIoAkggInn9ZfemMGg677A4W2Dypf5py66SRM96J7/lypK2wDBhB9YQCyl lMKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C6UbVAonXzXEF4tPDCKPCg7WA+lFJIW3l1l+LGaIaaE=; b=I4IsfHvPvWgKa/Ca59zOMTBU3dInXsN18nAbVGsaxgun1ZyF1TBOItU1vtWcm8qC5m 98+/U+wo1hJTIThBmxdar4AamyiGId24iM0OIBj6YAUaCdzFglJBV2SdOmMYGSDFSnzx ztrgweRrOPixrmthL3LNHhqDEDN2skkCVrHKUcijnh0FXcLA4Q6TiKu5nHjEpDmjkdeh xYpOyeMtSjt5q1OeiVQfYkD/rYL0BXvpgZz3dkxSirp2AJqXZ4YHdzmYRA7wefvwFlnd 778szuw0BKhipYV/xnIyV4KSaEQq5X9fKWWNrlz1PIoH5q33Ush89ZTiCcDblar4kpHr WsQg== X-Gm-Message-State: ACrzQf0ZCiciN/WpoS+p0iWUhKL6Mf4onJ9QCGqm3gdZ6MdhzmivQTwE OZFsCoRUFimJ8vszqREJMkQpmc9zzPoIT/eXfnw= X-Received: by 2002:a17:906:5a4b:b0:78d:4e5a:d101 with SMTP id my11-20020a1709065a4b00b0078d4e5ad101mr32495249ejc.196.1666714528655; Tue, 25 Oct 2022 09:15:28 -0700 (PDT) MIME-Version: 1.0 References: <20221017091201.199457-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Tue, 25 Oct 2022 17:15:02 +0100 Message-ID: Subject: Re: [RFC RESEND PATCH 0/2] RZ/G2UL separate out SoC specific parts To: Geert Uytterhoeven Cc: Magnus Damm , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Olof Johansson , soc@kernel.org, linux-arm-kernel@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Conor Dooley , Samuel Holland , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert. Thank you for the review. On Tue, Oct 25, 2022 at 1:42 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > (now replying to the latest version) > > On Mon, Oct 17, 2022 at 11:12 AM Prabhakar wrote: > > This patch series aims to split up the RZ/G2UL SoC DTSI into common parts > > so that this can be shared with the RZ/Five SoC. > > > > Implementation is based on the discussion [0] where I have used option#2. > > > > The Renesas RZ/G2UL (ARM64) and RZ/Five (RISC-V) have almost the same > > identical blocks to avoid duplication a base SoC dtsi (r9a07g043.dtsi) is > > created which will be used by the RZ/G2UL (r9a07g043u.dtsi) and RZ/Five > > (r9a07g043F.dtsi) > > Thanks for your series! > > > Sending this as an RFC to get some feedback. > > > > r9a07g043f.dtsi will look something like below: > > > > #include > > > > #define SOC_PERIPHERAL_IRQ_NUMBER(nr) (nr + 32) > > #define SOC_PERIPHERAL_IRQ(nr, na) SOC_PERIPHERAL_IRQ_NUMBER(nr) na > > Originally, when I assumed incorrectly that dtc does not support > arithmetic, I used "nr" and "na" in the macro I proposed to mean RISC-V > ("r") resp. ARM ("a") interrupt number. Apparently the names stuck, > although the second parameter now has a completely different meaning ;-) > > However, as the NCEPLIC does support interrupt flags, unlike the SiFive > PLIC, there is no need to have the flags parameter in the macro. > > Moreover, it looks like the SOC_PERIPHERAL_IRQ_NUMBER() > intermediate is not needed, so you can just write: > > #define SOC_PERIPHERAL_IRQ(nr) (nr + 32) > Agreed, I'll change it as per your suggestion and send a v2. Cheers, Prabhakar