Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1245540ybl; Fri, 23 Aug 2019 16:06:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJwifUPXV22UK3jogMObkMKbq2vaGdHtsczdr+FU1pYwwatsAETChzrHkkQZZ8W7mrsZlq X-Received: by 2002:a17:90a:bf82:: with SMTP id d2mr7631426pjs.121.1566601576298; Fri, 23 Aug 2019 16:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566601576; cv=none; d=google.com; s=arc-20160816; b=UTNk8umbKWyFKJZKQIz7EPpPh1nt9Cd37togKIyqZGTHEXjkZo6LdVRQZRWBI6EU8k NYAGKMscF8hGXMiwZWohvJrw0pk/GPMOBwnaop70lACZxmbkWwSa3+YOZuivdgk32lYF 29pWxr7nRawQeclsl7xOb3lQoM5/lOEcJSAE41h0v5Ov4QblVu9Kyg+hgXEl/pPXNmLr WB3zIMqz+O66fyHGqxy5rxpcYut1SK7PHeTqrJHpp+sCSZ90UOb3Xx0iRfShHtDDlIx7 CQiRGz88Sth9+ykZyJZSSvOqod49v65RUoIClg4eqCmPyHCtyeDe1+YHdELz8MrOPUMA 3oNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=mqrlg5qdclgMswZNo7YeuT7GTzz+9HMIwbV1tzQa7/o=; b=T0oYScacZ7N2ljx/VCxs10ZDnI5+dDiwi497q8ysmqsbqwLjqEs4DgjkVvbixcgTNR NDmCepOFInWduN3lX7FQinaCk54lbfECuESLr3v/pd8/qXIQ7oxgJeYdN67TPSoIEmTC PafKfpV3qWTh0ELkfTJxtDNe9FvTRZzGTc9JexqIEjRTZmWg389Xr4yTHtnb7mAzqng0 ax5kkwOY/HRJnFJ/d+ljT+oQUkBFkiFlpnK53M7ibJ1YZXHa5BvDFMpr2wSmWPN4YtAH l1m5FV9/rzrtccUo/vvDrhB/BZI+kRwstd3TnLJquRmc/hK/CON2VIY3KaozbAzLBD/y fwkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=tAWhLveb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si3814475pfn.171.2019.08.23.16.06.01; Fri, 23 Aug 2019 16:06:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=tAWhLveb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403919AbfHWLCa (ORCPT + 99 others); Fri, 23 Aug 2019 07:02:30 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:56460 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403804AbfHWLC3 (ORCPT ); Fri, 23 Aug 2019 07:02:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=mqrlg5qdclgMswZNo7YeuT7GTzz+9HMIwbV1tzQa7/o=; b=tAWhLvebAUeF ZMhTF7cMrpBzfMIEw1+Y2pV0shpl62di12XuNmwGgexF6Vw+voB1Fk/oNg/HvkM9ZbNSMT5SHrn/4 Zk2dIjgpis3k0+iVajNeNzMI775zeP1XzcaY/kb12JWwsREdaSdroEg8Qf7oVgt1nFCd0FwFmchOu Szjzs=; Received: from [92.54.175.117] (helo=fitzroy.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i17Kt-0002wG-Ft; Fri, 23 Aug 2019 11:02:27 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id 36BDAD02CD1; Fri, 23 Aug 2019 12:02:27 +0100 (BST) From: Mark Brown To: Vladimir Oltean Cc: broonie@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown , netdev@vger.kernel.org Subject: Applied "spi: spi-fsl-dspi: Exit the ISR with IRQ_NONE when it's not ours" to the spi tree In-Reply-To: <20190822211514.19288-3-olteanv@gmail.com> X-Patchwork-Hint: ignore Message-Id: <20190823110227.36BDAD02CD1@fitzroy.sirena.org.uk> Date: Fri, 23 Aug 2019 12:02:27 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: spi-fsl-dspi: Exit the ISR with IRQ_NONE when it's not ours has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 37b4100180641968056cb4e034cebc38338e8652 Mon Sep 17 00:00:00 2001 From: Vladimir Oltean Date: Fri, 23 Aug 2019 00:15:11 +0300 Subject: [PATCH] spi: spi-fsl-dspi: Exit the ISR with IRQ_NONE when it's not ours The DSPI interrupt can be shared between two controllers at least on the LX2160A. In that case, the driver for one controller might misbehave and consume the other's interrupt. Fix this by actually checking if any of the bits in the status register have been asserted. Fixes: 13aed2392741 ("spi: spi-fsl-dspi: use IRQF_SHARED mode to request IRQ") Signed-off-by: Vladimir Oltean Link: https://lore.kernel.org/r/20190822211514.19288-3-olteanv@gmail.com Signed-off-by: Mark Brown --- drivers/spi/spi-fsl-dspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index c90db7db4121..6ef2279a3699 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -659,7 +659,7 @@ static irqreturn_t dspi_interrupt(int irq, void *dev_id) regmap_write(dspi->regmap, SPI_SR, spi_sr); if (!(spi_sr & (SPI_SR_EOQF | SPI_SR_TCFQF))) - return IRQ_HANDLED; + return IRQ_NONE; /* Get transfer counter (in number of SPI transfers). It was * reset to 0 when transfer(s) were started. -- 2.20.1