Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1222833ybg; Thu, 4 Jun 2020 04:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7vIzqoLEHJzRxsa3CvG6WToPNz7op8Ndcxoyj/xCVEhQ/SlcmBuhtEpYLIXvuEANEeRcO X-Received: by 2002:a50:bf0e:: with SMTP id f14mr3985377edk.37.1591269840003; Thu, 04 Jun 2020 04:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591269839; cv=none; d=google.com; s=arc-20160816; b=wwyUhyOo/ccNYlLjXnCbb4iZyRphZdQqlDMSfAek94lEVIOelKUwcYBy4cvfroi76s 1jusqH2mqMj/KLLYK30fDqR1dazG2GL+DqwaJ7SLYhS8At3OdExIXPCAPskgtPzfw6hL s67mhfodREUGAknLyQbwNqCWDfb2ip5NSOSvIDQMYUedWaIAI/N8dy4LUIWGHpKFvTm/ Yi+QiO+ADjmZEpi4urR7oL/A4EA1dfFh5EhiKfsECgcJ6dZ5YbLeYaoZZcA7v2I2WXGc 7g9tHIOGSDGmKIZ8qyXs40a3CM3UakFGPWvbAl2MCAKvtRn+WlBhA5+ZSVhDNGjw6bGS gUww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NoPrwQ2nWtEsh4oc45DsiWji3bB60Aba63s0kFXWQUU=; b=dxs++j4WieIGx2uIYdydf/0MPZcRxxrWfFA4Jb+PlQH4us52WDvNT5Khda3E0w5MzA ShoR7xafqjjXU3Qg+P8igKeG4v1bEjLwTaK9U1Fn9+4rep2Q5spdRlBppzUDD5sfMqE7 9cTjVUMFx5YA5eWTQvX0t0e/brHJ96wMbJmvdmC67gUaZfcWrKtXigBWtgXjdfDKTAEg f6sDgem/QYRkRtJulhwcU/q+Zm5a1HC6sWZY6uH9aA/cfTVNC6nmdOWhtqN89Am6oVL1 HML2EV3MyorCAZdEoyVr0XUY/dzI5weQVpgrOMc86VcJtCwWZGeVU//FVbAzeElt9yOs Msuw== 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 p4si1410018ejr.36.2020.06.04.04.23.36; Thu, 04 Jun 2020 04:23:59 -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; 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 S1727120AbgFDLVP (ORCPT + 99 others); Thu, 4 Jun 2020 07:21:15 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:49817 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbgFDLVP (ORCPT ); Thu, 4 Jun 2020 07:21:15 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 8C42E100E2006; Thu, 4 Jun 2020 13:21:12 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 1A72A3B12FD; Thu, 4 Jun 2020 13:21:12 +0200 (CEST) Date: Thu, 4 Jun 2020 13:21:12 +0200 From: Lukas Wunner To: Mark Brown Cc: Florian Fainelli , linux-kernel@vger.kernel.org, Rob Herring , Nicolas Saenz Julienne , Ray Jui , Scott Branden , "maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE..." , "open list:SPI SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , Martin Sperl Subject: Re: [PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings Message-ID: <20200604112112.b3k4wrftckndscu6@wunner.de> References: <20200604034655.15930-1-f.fainelli@gmail.com> <20200604034655.15930-3-f.fainelli@gmail.com> <20200604042038.jzolu6k7q3d6bsvq@wunner.de> <20200604111325.GC6644@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200604111325.GC6644@sirena.org.uk> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 12:13:25PM +0100, Mark Brown wrote: > On Thu, Jun 04, 2020 at 06:20:38AM +0200, Lukas Wunner wrote: > > On Wed, Jun 03, 2020 at 08:46:54PM -0700, Florian Fainelli wrote: > > > The BCM2711 SoC features 5 SPI controllers which all share the same > > > interrupt line, the SPI driver needs to support interrupt sharing, > > > therefore use the chip specific compatible string to help with that. > > > You're saying above that the 5 controllers all share the interrupt > > but below you're only changing the compatible string of 4 controllers. > > > So I assume spi0 still has its own interrupt and only the additional > > 4 controllers present on the BCM2711/BCM7211 share their interrupt? > > Regardless of what's going on with the interrupts the compatible string > should reflect the IP version so unless for some reason someone taped > out two different versions of the IP it seems odd that the compatible > strings would vary within a given SoC. Hm. I guess it may be possible to search the DT for other devices sharing the same interrupt line and thereby determine whether IRQF_SHARED is necessary. The helper to perform this search could live in drivers/of/irq.c as I imagine it might be useful in general.