Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2030885ybg; Fri, 5 Jun 2020 03:55:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnrVNTdBScmKyReWEdtJvPKs2oHaQKbNF62DfRnQVZyjE0xzRz/wiIuDqUdrIOpEdb6MzY X-Received: by 2002:a17:906:4e88:: with SMTP id v8mr8516810eju.360.1591354527810; Fri, 05 Jun 2020 03:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591354527; cv=none; d=google.com; s=arc-20160816; b=lbAAZYn25D+b6Q97gTMxkLu7Mr6ab1PUc6+z5KiozO4P5yvmKBgKpwUQx+aYTCKG38 OXwWc4o5VeziEQA9GpQTzwpROIdD8+SQrqZgLO1vgjUSC1YpdPomLuB5pwLJhj3TVlGN gRTykXOdmZagGecixbUKN1FnM9IByOYoGcAEkhWfDCHGl5ILcDwgSEJTd+XGMUwpl2sV ooS2outYEdXRAMxxNn8N25JuaN5E9Yo4PNUf/xvdjcz/+7SEHfuHExiv+rrd0LGH2NbF dyCUwtt2cbXd09T6VRpP+Axshz9DIHyMZlKOBc6Ov3nGHngr1yrekxO6ONizp1zbJlRv xMnw== 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=KptGZIKdZPvCSMbYRNR2SJE0wmyshKB54GXkaijg5QU=; b=cxTUFYhF/tlDRi3VhWMoMbDRTmaQQQF6tCwCUwF6Kp/TBZHgvkslTpbFfziLlRR+DM lsHSx1aQnldsvojJiy0eOaEpJ7Gyw5fpYjzqn5O/RMsek5UOv11PsHDXh5vOB5n4qPMM 2VLa2Z9BXESV2cQFidbQpF3jJYHoBKGAGqsHLiNpkUdCbOP3WSwaaCpqk7ed7QBFnfp/ 4ItfiEIY1hen/v+VHfCRa7gwaMP9wGMkaAWJkVc0cd8TBgiziWoc9obc1MgCmS651BCw 3FHfIkmNIIQ0tiFXDIwNXQtKEy1dw5tJYVOhCLVhU9fUWrU551UZAX9qecNcYl+lTuMW dlJg== 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 dk3si3310072edb.580.2020.06.05.03.55.04; Fri, 05 Jun 2020 03:55:27 -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 S1726889AbgFEKvF (ORCPT + 99 others); Fri, 5 Jun 2020 06:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726637AbgFEKvE (ORCPT ); Fri, 5 Jun 2020 06:51:04 -0400 X-Greylist: delayed 109823 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 05 Jun 2020 03:51:03 PDT Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D81C08C5C2; Fri, 5 Jun 2020 03:51:03 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (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 bmailout1.hostsharing.net (Postfix) with ESMTPS id 04986300020AA; Fri, 5 Jun 2020 12:51:01 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id C284822B009; Fri, 5 Jun 2020 12:51:00 +0200 (CEST) Date: Fri, 5 Jun 2020 12:51:00 +0200 From: Lukas Wunner To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, Mark Brown , 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 v2] spi: bcm2835: Enable shared interrupt support Message-ID: <20200605105100.kxe6wgh5itmhrgl2@wunner.de> References: <20200604212819.715-1-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200604212819.715-1-f.fainelli@gmail.com> 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 02:28:19PM -0700, Florian Fainelli wrote: > The 4 SPI controller instances added in BCM2711 and BCM7211 SoCs (SPI3, > SPI4, SPI5 and SPI6) share the same interrupt line with SPI0. > > For the BCM2835 case which is deemed performance critical, we would like > to continue using an interrupt handler which does not have the extra > comparison on BCM2835_SPI_CS_INTR. > > To support that requirement the common interrupt handling code between > the shared and non-shared interrupt paths is split into a > bcm2835_spi_interrupt_common() and both bcm2835_spi_interrupt() as well > as bcm2835_spi_shared_interrupt() make use of it. > > During probe, we determine if there is at least another instance of this > SPI controller, and if there is, then we install a shared interrupt > handler. > > Signed-off-by: Florian Fainelli Reviewed-by: Lukas Wunner