Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1949931ybt; Mon, 15 Jun 2020 13:50:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkL0IUrwyPIGqHeHlE3vb+hKGypdHPmg0f9F3PNA7T8k09zaKUl/VL2a1pHcujuvTqOPzd X-Received: by 2002:a05:6402:b31:: with SMTP id bo17mr26235191edb.152.1592254252218; Mon, 15 Jun 2020 13:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592254252; cv=none; d=google.com; s=arc-20160816; b=DGnQ9Rt9KNVYYMqutQ4qvpbWnah6pT5qjzDVKOpHl6zC7qiUe296uw9M1n628n8SWa BYFnpMzawwN0qWTuEOt5kO9B/Z91rVgBnPu/qfBIdJbXhpbpaR2Z+kdRBHhf+iJutGyH D3z9XwW4q5rgyh0atWhYJWj8fik367kizkR08pnEOnufW5Hrgn4gHWmnUug34kwzawT1 B09gpd6d3lkg8KDPvTz5U+9Id29cUuSceZnrxf2R8munKbpryhTp38SqNMhyTEm+LJlB y7hNE6IrxK8XjFcy8wPUXlfuBQEVw5sBRh39F071jo1b7eylauCdc3NQniDUkBtEvGEl MXdw== 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:dkim-signature; bh=oPsjWN5AsMWdhflg4O6fpdmjYfVnolq35MpcZvQuBkE=; b=ph8bT35PCUGfQVkNGSIdLBu4FLNuDrIIdYt+m6vdXC8VTePqSU2XvIq8tVlr9frKZC kwW3iarUxT9dTOLxJ62X//u0AoQWtGn/S2U012aDSTEJDVurY+hzrULL94kICGDiaM3q vHK/oW7vmdbRdMU/8rOXFfgydJQf9cyzNoNfeuJK9wuv/nwfenatKS7GqloL1a/Z0r9S UIPbtXD0/md5zHWKgcoLn3UYj61aZPuD41rdrM4hMlnMcZEBU3otiALMOREmB1XLhosc 3ZIbWBD8NelhSZ9TLMNwuMRFAdae6bLVm84BMGkSI8QNwwg7npP2V7fjgk7EG+JggPAx rH2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L9bF2WuO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si9787376eje.201.2020.06.15.13.50.29; Mon, 15 Jun 2020 13:50:52 -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=@kernel.org header.s=default header.b=L9bF2WuO; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731619AbgFOUsm (ORCPT + 99 others); Mon, 15 Jun 2020 16:48:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:52158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729692AbgFOUsm (ORCPT ); Mon, 15 Jun 2020 16:48:42 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC1F62074D; Mon, 15 Jun 2020 20:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592254121; bh=wo+re6s2YDnW0mUOtFNK3Gv5qenkYP/Ioxp0Ii0ipxk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L9bF2WuOC/XYQjJ1bZnbdmypv0LffpNr8hVmWkop5+13+AmcUErcAInWJ68Yn0qqg xtfvmizZti3ycCopliDMI17OZbSkRMUkSGMBnkVExAHB7yEsFK9F5pxuZkDjfgVgt6 5GYlONQY7SQWv8T1RjbBgJ+yyfD0DetFOD9sboPY= Date: Mon, 15 Jun 2020 21:48:39 +0100 From: Mark Brown To: Florian Fainelli Cc: Robin Murphy , Lukas Wunner , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, "open list:SPI SUBSYSTEM" , Rob Herring , "maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE..." , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , Martin Sperl , Nicolas Saenz Julienne Subject: Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support Message-ID: <20200615204838.GD4447@sirena.org.uk> References: <20200604212819.715-1-f.fainelli@gmail.com> <142d48ae-2725-1368-3e11-658449662371@arm.com> <20200605132037.GF5413@sirena.org.uk> <2e371a32-fb52-03a2-82e4-5733d9f139cc@arm.com> <06342e88-e130-ad7a-9f97-94f09156f868@arm.com> <20200608114148.4bau4mdcvwgf25ut@wunner.de> <3d4fd3f9-9bde-90a8-bef5-9fc97cc9b363@arm.com> <2e4a6c4b-857f-1000-e7fd-327b0800fb97@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+Xnt6BZa+I2KmHWw" Content-Disposition: inline In-Reply-To: <2e4a6c4b-857f-1000-e7fd-327b0800fb97@gmail.com> X-Cookie: Offer may end without notice. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+Xnt6BZa+I2KmHWw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 15, 2020 at 12:42:50PM -0700, Florian Fainelli wrote: > Or how about this: we slightly re-structure the interrupt handler such > that all possible interrupt conditions are explicitly handled and > terminate with a return IRQ_HANDLED, and those which are not, including > in the case of a "spurious" (because the interrupt was triggered for > another SPI controller instance), then we finish the function with > IRQ_NONE. This would not impact the performance for the BCM2835/36/37 > which would still have a single controller/single interrupt line to handle. That seems sensible - it's generally a good way to structure interrupt handlers. It's almost there already. --+Xnt6BZa+I2KmHWw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl7n3qYACgkQJNaLcl1U h9DisAf6A5UOQQuqIInhodRjyyOGfjW8rSDr/5WD85MI8WAWlgspNB+6CifvPJk+ +/yjv693s/Qlzec/Yg+M92TBor94AU3VWYiT1re9UoFIu35WAPSCL1A4E6imwUxs cYJgHI0eE3L2muigphjbBlhUufPTRm2BDAFaHZhGTuJvRfCbbfPZdV555Fxa3r6w GVdrs5U40M3TsJ4Wy/ht3mcnF5jRc3OvpsLAIMeVadzsNzG80GNbCn8RYaKPnUPD OjxdMc4lA3HhZRqiYvUjUEmG4U0MXSb1DoC+8/tr/rfj6yOn+su94phT6RXF3plY CObjpS476p9DJlmYVYA54/uj06NWpg== =1R8u -----END PGP SIGNATURE----- --+Xnt6BZa+I2KmHWw--