Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5609911pxb; Tue, 16 Feb 2021 03:05:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCpcFal4yIZhpi4yB+xBRFAO4b/QurTWsoSx3hzbj6N2FRD70MhQbOVGcHyFcJe31lJbaK X-Received: by 2002:aa7:c044:: with SMTP id k4mr5934834edo.47.1613473529972; Tue, 16 Feb 2021 03:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613473529; cv=none; d=google.com; s=arc-20160816; b=jE9GWkH0WK5Flonw2Rvg4j6RTiqlLa6kzWWQccWgrvkrkbEkaQQ6roJ3Y2o9FHNcr8 XfaE/XJIig00GSQ1wY/mOWAE0RuIE8DjgQu7i7vwAYjeQQp6fr1OpFfsyDqAU5lbDTkR gkp5Z7aWgXLm7HGU0zntUMXlZx+mAmm2pGGMxckqQPbw5hX2+rl4zQEcx7+5h567dGTE b41NkQOraLDor25Kz9BwYoS/jw1o6jzAycGh5pWsFcgk0xwtFLr6EnAZgGgSUZdQjngk W8DDAckUvTp29IET+bm+fr8ZXaVDD3smwRLGQa9EioxxUj9OQzzf3HjIkGuSHElwKnbx MF5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:references:subject:in-reply-to:cc:to :from:date; bh=Q7Zuuu2wqohgzFef9QyeKsSxOw8izyog+zkVqb0r2Jw=; b=kc1jLYWlOgdyTPP61BGyEXa0OvhQw0n2hCZeddxHQ3m2IDqBwnw7R9ucLVun3Mh+tk 7eEguSQW7abAs6qDbphvvjt8abTNpFlo4Xj/GrdPAO2ltbuLHgBoJoNqDZ6hM/adF5XI vzswABulaNCoEmc8g2iMk61lcNE2Xasv/G5vLllvTun1ydQDppxDGMrf5iFyP7UDH1t+ JaUNGxVFa92OhbwrEWdu9et8VFZjyb6vF/niQe2uEncPZSF+/sSVRszY+34H0vjfdIgu iotb25ui3qrhiA1UX9rX5tpv0spBxE0sjyrLVdHw/m5uD+L7khPE+O4QNq8ctJebqqZL xBOg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si11299283ejl.40.2021.02.16.03.05.07; Tue, 16 Feb 2021 03:05:29 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229917AbhBPLD3 (ORCPT + 99 others); Tue, 16 Feb 2021 06:03:29 -0500 Received: from sibelius.xs4all.nl ([83.163.83.176]:64022 "EHLO sibelius.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbhBPLBS (ORCPT ); Tue, 16 Feb 2021 06:01:18 -0500 Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 397eb703; Tue, 16 Feb 2021 12:00:32 +0100 (CET) Date: Tue, 16 Feb 2021 12:00:32 +0100 (CET) From: Mark Kettenis To: Arnd Bergmann Cc: marcan@marcan.st, linux-arm-kernel@lists.infradead.org, maz@kernel.org, robh@kernel.org, olof@lixom.net, krzk@kernel.org, tony@atomide.com, mohamed.mediouni@caramail.com, stan@corellium.com, graf@amazon.com, will@kernel.org, linus.walleij@linaro.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: (message from Arnd Bergmann on Tue, 16 Feb 2021 10:41:11 +0100) Subject: Re: [PATCH v2 14/25] dt-bindings: interrupt-controller: Add DT bindings for apple-aic References: <20210215121713.57687-1-marcan@marcan.st> <20210215121713.57687-15-marcan@marcan.st> Message-ID: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Arnd Bergmann > Date: Tue, 16 Feb 2021 10:41:11 +0100 > > On Mon, Feb 15, 2021 at 1:17 PM Hector Martin wrote: > > + > > + The 2nd cell contains the interrupt number. > > + - HW IRQs: interrupt number > > + - FIQs: > > + - 0: physical HV timer > > + - 1: virtual HV timer > > + - 2: physical guest timer > > + - 3: virtual guest timer > > I wonder if you could just model the FIQ as a single shared level interrupt > (which is essentially what it is), and have every driver that uses it do a > request_irq() on the same IRQ number. > > This would avoid having to come up with a fake binding for it, and simplify > the implementation that then no longer has to peek into each interrupt > source. That would tie the binding more closely to the implementation as it would remove the option of peeking at the interrupt source. And wouldn't it mean that the arch_timer driver would need to know whether the interrupt is shared or not?