Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp739387imn; Thu, 28 Jul 2022 14:21:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vlcFSN8L0kBUi+kPjhp6IBdrhDQPte9p8o0oSHiGvhBqP//iN0kk7Pj0xtNRStGvNyUdZn X-Received: by 2002:a05:6402:2554:b0:43b:e4a3:2664 with SMTP id l20-20020a056402255400b0043be4a32664mr782311edb.423.1659043316982; Thu, 28 Jul 2022 14:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659043316; cv=none; d=google.com; s=arc-20160816; b=n09Brdk7ZWqBUR7GCdwV/3Ttjwfs9KL0TDsjA3dKso7CCGmmn/nMf11qreeYy4U36E TY1FFQThwVa2VtfcruQt+Bf0ir+ZeInjQc6lmKsAYOEvYVE54kpDBD6dtiY+f5KChjax gSHxElh0JX7bZqtstQlhtbWMZhF/24qs4X0g2Bte9ivIZW3A6wE4JvYN5kI8xdYOtaiA OYiHsg60COLdKlUMET6Q8V7hlDtgOpH+QW8nqM5Xd2U2CtavF1tXBeOxnOLwM/Y+7DiE yPZd2QLnSEpbvtBRxTQ354Y7uXPR66o+c0vrPOYTm9fpxTIOGwTVKyYszpf9ax2NXS6r 6CLg== 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=NZXtt/QofZDC7zUBwIWTxL7PY3McEogGdP7WygPZyc0=; b=DpUCBO71gSjluoh3weqShxOZPRZy7Z3oMHszHoqnXXmYhvyoKr8qo34UbP2oMj6Mvy PAY0J2Z9pu48zrVezEbEP/Vl7f0jj9BZ3znr01XMhop44Z5ZfOt+Awp6dhtc+4oGsm64 j7uszamWrGO9inW7F7znHz3nxGm0tOOcXRXVA76pc6SR8+pC1uDfiQxV0a0+dDya8LOe Hal/iYU5M30Z1gsY3OogRmqgtNoGd6HO95xc3HjzPyBc+YNSmajbYvb43yTZ//1eJLKt W7aH45AX7nu5GGMCua2bYAWw/AOjJRpK9coP3+slBCPeN0MOna7brx07WJ4LqPlO3Ldq PQZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K0WElrLX; 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 z1-20020a05640240c100b0043cff177518si1392334edb.463.2022.07.28.14.21.32; Thu, 28 Jul 2022 14:21:56 -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=K0WElrLX; 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 S232760AbiG1VIB (ORCPT + 99 others); Thu, 28 Jul 2022 17:08:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232029AbiG1VH7 (ORCPT ); Thu, 28 Jul 2022 17:07:59 -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 AB60F6D554; Thu, 28 Jul 2022 14:07:58 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id sz17so5181115ejc.9; Thu, 28 Jul 2022 14:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NZXtt/QofZDC7zUBwIWTxL7PY3McEogGdP7WygPZyc0=; b=K0WElrLXF9gteDIH0IgTF0SkihqpeO2+7ttRzCUdN6AHdyEYH7EF7ZHQyKGodloZEU jREZarlI9W81gfzl9cAahqf8B9KI8HKM5cVHjU2PU05aoCxrtI2SFYl1Izor/FrGwTwN 8iUJ//j3rKtlMzD5406DgJQR6rKywPaV7hODOxp20dd4Q1R1q111VzTsV7lQg0hBjGZT vslGtHmCRWOf6CuydcUfGWzrSncIzOHWcN2y/uRr4y1/n+LPcnny2Pd7M452awo3Y5fD Ak+EaZ8pJeJ5krSd0Ub2DJ70kEqAZnR/oAKMDFTHXSYA+XdViuNChTANv23OqkmoreWe a4Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NZXtt/QofZDC7zUBwIWTxL7PY3McEogGdP7WygPZyc0=; b=fqLXblvMeNb7P1yxgkRAS2U5BUXzLoh0MQXpwkGGOHC9BEJY6Us5Bspz7iYAb8gqDT paDtdnnlFcmSjNI7YF3zHe394SnOr3sHRe7wReuSFwnnCeck66Azq2KF0sgxd5N9jjwh R+Wtk9kAyQT8urhSZlZ5BpV9HMckPCRJnrvVBt+XbnmLd6My2JmAh7qYPws8FMqYq9Oh KEaCW/WN29KOSa9dGD28STk8WvspZB6Af10BSnLeWkXJUhMpcakt8GnWd8kOZGMH+mct C5SFaWH4R1K2gzWcjJU0/zdjZlTaFREGHP5Nxew5g71gNJc8ZsqI8qRly58lqwh7Dt3J lUcA== X-Gm-Message-State: AJIora9diOLZ+TZXnvZEFAshUW7JLggNUS2RZEwlQW2DC64riY/ZLh2J 7sIYeqwAGdVl4aPMGAso4qOcUAoadPIEweCsCHg= X-Received: by 2002:a17:907:2722:b0:72b:735a:d3b4 with SMTP id d2-20020a170907272200b0072b735ad3b4mr521562ejl.363.1659042477105; Thu, 28 Jul 2022 14:07:57 -0700 (PDT) MIME-Version: 1.0 References: <20220728190810.1290857-1-robh@kernel.org> In-Reply-To: From: Jassi Brar Date: Thu, 28 Jul 2022 16:07:45 -0500 Message-ID: Subject: Re: [PATCH] dt-bindings: mailbox: arm,mhu: Make secure interrupt optional To: Rob Herring Cc: Krzysztof Kozlowski , Jassi Brar , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org 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 On Thu, Jul 28, 2022 at 3:17 PM Jassi Brar wrote: > > On Thu, Jul 28, 2022 at 2:08 PM Rob Herring wrote: > > > > The secure interrupt is only useful to secure world, therefore for NS > > users it shouldn't be required. Make it optional. > > > > This fixes a warning on Arm Juno board: > > > > mhu@2b1f0000: interrupts: [[0, 36, 4], [0, 35, 4]] is too short > > > > Signed-off-by: Rob Herring > > --- > > Documentation/devicetree/bindings/mailbox/arm,mhu.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml > > index bd49c201477d..d9a4f4a02d7c 100644 > > --- a/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml > > +++ b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml > > @@ -57,6 +57,7 @@ properties: > > maxItems: 1 > > > > interrupts: > > + minItems: 2 > > items: > > - description: low-priority non-secure > > - description: high-priority non-secure > > > Do we also want to specify that only the secure-irq is optional > because irqs are directly mapped onto channels in the driver, and only > omitting the secure (last) irq will work. > I could learn why specifying secure irq isn't desirable? No non-secure client node would ask for that secure irq/channel, which will simply lay unused. The programming of the secure channel doesn't care if the mode is indeed secure. It all relies on providing accurate information in the device tree :- the controller provides secure and non-secure channels but only non-secure channels are _used_ in non-secure mode. diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi index f6c55877fbd94..004b1566be74d 100644 --- a/arch/arm64/boot/dts/arm/juno-base.dtsi +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi @@ -26,7 +26,8 @@ mailbox: mhu@2b1f0000 { compatible = "arm,mhu", "arm,primecell"; reg = <0x0 0x2b1f0000 0x0 0x1000>; interrupts = , - ; + , + ; interrupt-names = "mhu_lpri_rx", "mhu_hpri_rx"; #mbox-cells = <1>; If this works for you, I could submit a proper patch. thanks.