Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp518506pxa; Thu, 27 Aug 2020 08:27:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjEE9LmvGrtxPDY493kaQuUUIjxqbDhpLJK6Y1ZORhn8eD0L+Vhcy90UFJrduKY0vrOt2j X-Received: by 2002:aa7:c252:: with SMTP id y18mr16980246edo.295.1598542027685; Thu, 27 Aug 2020 08:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598542027; cv=none; d=google.com; s=arc-20160816; b=KpIIbmC/dphLlw2FIEc7+06wRo5AbixrTNQL4PsGgqGHd8Rm2vAKID4E7d0vWiFP+N C7ja6SyxB0Brl8ZrrZDK0+brTttOb7TbDuhO3dZgJacg9PHJHDG3bjwuZ7ZQ6+CJe6QF VACxT24xyxT/NV3wmQfnPpPL0SuXmrzJ/pCwC8VjQkoM37+UzJxAxrnrCIDdhdZ9HG8B v+oX7XWDdubaqJ2yvgcjNy41NAOTzj4ayhm5UqejqZu6P+WZhpTJlN66bd0Cv8CQReNe aEquSWtYH8GirbGF65bxh/0y1OvT7bj0C+6LkAYECIpiS6BUJi5UubI+U1od4Kl/abUD ZdDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RdoDtBKGcqZmEr6XwRvBVpJT6+jSdmIYiVMHvZ2UEtM=; b=zaIeR1SVIaZW0rjgq7KAYxbEYcKttUpbyTLQWVsh+Zsr++nF4ikFjEwqgIUDzxfNdI fbTEFEx2wAsB/M3Ow5ElaOBiKisVDO36oN4/okfBcdtt8F0shkWNOK81AgSbN7SuuflV kF7SlybPIO+SwiUWwG+BsjODsb00TRhCPyQAcpXSo9DbS1eu+xbub5zWb1FHp42Grcm8 83ZsYkUAH3CMG9pOuI/W4Ye4KFFi3rsVgMua0sT00b2fqOKpcfKnPUUL7ApKjzNZ7wuZ epBoysLYM/b8sOno0uygKJYt46DQMh0vst0ZN4KfCOPIWJnANMfX7MwX559TiIDNx2ig zTsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dZ1UT1Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si1584896eji.340.2020.08.27.08.26.44; Thu, 27 Aug 2020 08:27:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dZ1UT1Jv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727001AbgH0PYf (ORCPT + 99 others); Thu, 27 Aug 2020 11:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbgH0PYd (ORCPT ); Thu, 27 Aug 2020 11:24:33 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC13C061264; Thu, 27 Aug 2020 08:24:33 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id a21so8230205ejp.0; Thu, 27 Aug 2020 08:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RdoDtBKGcqZmEr6XwRvBVpJT6+jSdmIYiVMHvZ2UEtM=; b=dZ1UT1JvUfj8uxpfO5tKZObD9vupZ6VKPHEPWHiIX6/azQ3Xx0wiMpuwNWJrbqQuRF MtFchebdnoYgSKqDE0PxgEUQ2ono+2kbI99Ov7xzOQqnPKNzI68N8AQ9wVOUPW+Rn0e7 sYR5JWw22qj/yPUWFU7yH3afY4qi1ThAZFMX4QPAmju0zzCW9ZQnqMzGiptFdTfuuV3O l7VwkbseTYupt71wVEWopi3mA00+fcQB0ENTmVwqdxeP4dQe5BPNA7jk9FprgWcTqtyR ezQCSepa0hmpM8sRO9RiKBLtNV/WHEM+gxLrIEPK467vYT1vQ6PHqju5+BgSG7sd4VPd /lSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=RdoDtBKGcqZmEr6XwRvBVpJT6+jSdmIYiVMHvZ2UEtM=; b=DMbWc8H7mqAKg6u6Ny3/tm149wZ4UwKFUH0TP6MwqeJpFGXOdTvUplgqyGeo8m7I7L i7fSW22BRhJTaA03nJ/22zFv8hl0NhFV2jINR06rhIvnPGSl7FLe/hAs5j4JFI930djZ ogZrxOZqAeVsAqFFOnprFvKie+86pBEVZPEddWSjXfflQjYZfq4u5GOKzfRxF21kNBmJ +MYFSGNCHDsItkYKdRT3/Qx0YOwjUxBMPllNAKGT3WozpyLT7F6vlblxunf6YVERMr0F tGCnkVkUDtYNkfZedjrIE45IxXZty+JM43sKSV4GxF83fU25niIYWrXuaoDjMMFx94i3 lUog== X-Gm-Message-State: AOAM530YSB682hoy1JaY0K8vukfqCfbMENykRakxEbBcPY+8BLQ9vT/g pVTaRkS3K6xmYQ4DbHSZFx3Zg3Ee7E4= X-Received: by 2002:a17:906:1719:: with SMTP id c25mr22373847eje.487.1598541871646; Thu, 27 Aug 2020 08:24:31 -0700 (PDT) Received: from BV030612LT ([188.24.159.61]) by smtp.gmail.com with ESMTPSA id g9sm1742781edk.97.2020.08.27.08.24.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 08:24:30 -0700 (PDT) Date: Thu, 27 Aug 2020 18:24:28 +0300 From: Cristian Ciocaltea To: Marc Zyngier Cc: Rob Herring , Thomas Gleixner , Jason Cooper , Andreas =?iso-8859-1?Q?F=E4rber?= , Manivannan Sadhasivam , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-actions@lists.infradead.org Subject: Re: [PATCH v5 1/3] dt-bindings: interrupt-controller: Add Actions SIRQ controller binding Message-ID: <20200827152428.GA2467154@BV030612LT> References: <6bd99d4a7e50904b57bb3ad050725fbb418874b7.1597852360.git.cristian.ciocaltea@gmail.com> <20200825220913.GA1423455@bogus> <20200826214220.GA2444747@BV030612LT> <20200827100629.GA2451538@BV030612LT> <64580e3b9acada6ff4ae9fdef02ac304@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64580e3b9acada6ff4ae9fdef02ac304@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On Thu, Aug 27, 2020 at 11:35:06AM +0100, Marc Zyngier wrote: > On 2020-08-27 11:06, Cristian Ciocaltea wrote: > > On Wed, Aug 26, 2020 at 04:48:38PM -0600, Rob Herring wrote: > > > On Wed, Aug 26, 2020 at 3:42 PM Cristian Ciocaltea > > > wrote: > > [...] > > > > Ultimately the GIC trigger type has to be > > > something. Is it fixed or passed thru? If the latter, just use 0 > > > (IRQ_TYPE_NONE) if the GIC trigger mode is not fixed. Having some sort > > > of translation of the trigger is pretty common. > > > > Yes, as explained above, the SIRQ controller performs indeed the > > translation of the incoming signal. So if I understand correctly, your > > suggestion would be to use the following inside the sirq node: > > > > interrupts = , /* SIRQ0 */ > > [...] > > Please don't. If you are describing a GIC interrupt, use a > trigger that actually exists. Given that you have a 1:1 > mapping between input and output, just encode the output > trigger that matches the input. Understood, the only remark here is that internally, the driver will not use this information and instead will continue to rely on the input to properly set the trigger type for the output. The question is if the driver should also emit a warning (or error?) when the trigger type supplied via DT doesn't match the expected value. If yes, we should also clarify what the user is supposed to provide in the controller node: the trigger type before the conversion (the input) or the one after the conversion (the output). > M. > -- > Jazz is not dead. It just smells funny... Thanks, Cristi