Message ID | 20201012132630.998887361@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=uWP8=DT=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 864ECC433E7 for <stable@archiver.kernel.org>; Mon, 12 Oct 2020 14:04:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5200420757 for <stable@archiver.kernel.org>; Mon, 12 Oct 2020 14:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602511447; bh=kb/xDZY5HRtm/9Aad0YHn71BSrGa64+RJEGGTIQklS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=iQz6PhftjWbUgAoQ1u16bIfvF12Csz46uDuVkoEmrSyZghORGFzxB3IfD+Eiao9RK o/1FzMASsTBVF/BVNgoGteKaXDF7bI9LaSMrEeq0lPjZxA6k4A41DBkZsHIns3iZS/ mrYS+KktZI85Qm0J7aLHCtL5YcHl+Kz9MClGwkQ0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388641AbgJLOEG (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 12 Oct 2020 10:04:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:38908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388626AbgJLNgO (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 12 Oct 2020 09:36:14 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 682FD204EA; Mon, 12 Oct 2020 13:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602509773; bh=kb/xDZY5HRtm/9Aad0YHn71BSrGa64+RJEGGTIQklS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vWGc8ggpacg2/uUIpPKox1IWcQs+TgiDwBpVaL5Gzf/vf4Ias+rUIep11KAtGLsV1 WcvNwhEqjvpzAqURZAffKdxmT+yya98E9QvBZFrQUxNCy23um1gudve+28zb5hu8Xw YT40G2AvMWS9/ADdBUjuGI33JTXO0L1+Q4QR2kz8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Chris Packham <chris.packham@alliedtelesis.co.nz>, Mark Brown <broonie@kernel.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.14 16/70] spi: fsl-espi: Only process interrupts for expected events Date: Mon, 12 Oct 2020 15:26:32 +0200 Message-Id: <20201012132630.998887361@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132630.201442517@linuxfoundation.org> References: <20201012132630.201442517@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 1d332e23f6ede..6a39ba5840c2e 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -556,13 +556,14 @@ static void fsl_espi_cpu_irq(struct fsl_espi *espi, u32 events) static irqreturn_t fsl_espi_irq(s32 irq, void *context_data) { struct fsl_espi *espi = context_data; - u32 events; + u32 events, mask; spin_lock(&espi->lock); /* Get interrupt events(tx/rx) */ events = fsl_espi_read_reg(espi, ESPI_SPIE); - if (!events) { + mask = fsl_espi_read_reg(espi, ESPI_SPIM); + if (!(events & mask)) { spin_unlock(&espi->lock); return IRQ_NONE; }