From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753233AbdLGMEH (ORCPT ); Thu, 7 Dec 2017 07:04:07 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57204 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753186AbdLGMEF (ORCPT ); Thu, 7 Dec 2017 07:04:05 -0500 Date: Thu, 7 Dec 2017 12:03:52 +0000 From: Mark Brown To: "Andrew F. Davis" Cc: Liam Girdwood , Rob Herring , Mark Rutland , =?iso-8859-1?Q?Beno=EEt?= Cousson , Tony Lindgren , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 16/19] ASoC: tlv320aic31xx: Add short circuit detection support Message-ID: <20171207120352.4obvlu4cemagfom7@sirena.org.uk> References: <20171129213300.20021-1-afd@ti.com> <20171129213300.20021-17-afd@ti.com> <20171201133930.xzfjjj6wzkbtk6c4@sirena.org.uk> <4d956cbc-829c-0d81-2980-aa2a79f36660@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2rxxai2avwi7xst3" Content-Disposition: inline In-Reply-To: X-Cookie: Please take note: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2rxxai2avwi7xst3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 06, 2017 at 02:22:39PM -0600, Andrew F. Davis wrote: > On 12/01/2017 09:32 AM, Andrew F. Davis wrote: > >> This will report the interrupt as handled even if we didn't see an > >> interrupt we understand which will break shared interrupt lines. At the > >> very least we should log other interrupt sources numerically. > > Okay, I think I can make that work by checking if no bits are set in the > > interrupt regs and returning early if not, IRQ_NONE. > This turned out to be more difficult than I expected, plus if I do > handle an interrupt it doesn't mean the other device did not right? So > this wouldn't fix shared lines as far as I can tell, but I don't > register it as shared so this should be fine. It'll mean that we don't offer the interrupt to anything else sharing the line. > As for your other suggestion of "log other interrupt sources > numerically", could you explain this or point to an example of what you > mean? Just print out the bits that were set. --2rxxai2avwi7xst3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlopLicACgkQJNaLcl1U h9DlkAf/Swg/pQ9TfBpAbuL1qabvbPSFYutbVk2QDkaIJII+toomOWiK55H/jIQL roYqlO2HchUUcD92WPm+kR9zclGbqFJWhBkxXhZwzNfZqB2QpBQw74aVTjYyLmwZ D3GCeqxDq/mHbgMB5j3aBD9uo/lX44eA75vi+37+tgXzrAz/GbM4IGkY/6cQxPnC ntrHDMuVBPDOPTLkGdqjTuHjKfGiYbnsYQUWKaeveG6Ew7kenUv3qMASYowqJ61V Y9al7/OxVitva4uYODj2cDmi/Y4uL8rr0xo9v/CcuubI24n7b8gZPgrRGXO1Tg/t 4naeMJttnrXsmaiSGyMjzXWyULOcDA== =oks2 -----END PGP SIGNATURE----- --2rxxai2avwi7xst3--