Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3030706pxb; Mon, 18 Oct 2021 06:58:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvBXlA3uF8INbIIbmYrIam8CL6lSrggRPoCjovLPKNt67lbsSg1riqg3hvfkT3pOdhE6za X-Received: by 2002:a17:90b:104d:: with SMTP id gq13mr48604580pjb.32.1634565484474; Mon, 18 Oct 2021 06:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565484; cv=none; d=google.com; s=arc-20160816; b=ZCTTVYbR8HC7E0F4yrLbi08bMZwPoNA8zPy4EXOqq2mAal/MDM5eyTQn4Bo7Ku/txr 8zCN6vD5Aa4Rmtv4cjV6THwLfOxt1BrvjwGEm7cDHUbKJWtVhkUSaMfp20EAYM70efmM lCUb1PK03Nbs1xVKF6UC/Jg5WA/PT8+GHA058jkARI6+W7sRRPlq+SkgRpyf3u5yjwue BzZDcTI5vcPOwNeCU8a1fmbtb/+p/XnbrzTwZAEf9yt0C+RWUh33cqgbg1TBbOsnuNs/ Du0KuFBFzURuvOW+w4rL5DpqstiP3FLwPxYqgxEv2EpW8EfdzaYaBzFx6nCkqrbFprZl mdyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cef2mL7QHoetyvTZUxpMR3kJMNyoPrCpUUN8NEHNa1E=; b=b+q40MIiMZcketZ2XnKN3Z7FSVTVkWhetpLp9+KI2mtTYLxDr+dsZt78Af1EU8GwCx vb1NeguyUpHpxionsN2r1xuL4wQbc571iS6GRAKlPKsLhMgonLCUQ1UmLenTukT5GhSZ ALEy55cB0lCND9TGADB35Hhxm0AQ1x7HpSXZ0nRf0TBlgQc4ZKD98bcdXBDoRhY6OgCk wT5hVRyrzFzLbsvCwBelyFEH7xMWcFdEmAnDipNBTs1iVaBlKaeoJtXdL5tfn1xBRkgz l/Nv9nndbteKvDUMJK5meyPMvlr7Y7L0izZnt0rBFLSRf+kcJbdof3rHGmPhZ8Xcfk89 xSfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="e/nyoIpL"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si25561115pfc.18.2021.10.18.06.57.51; Mon, 18 Oct 2021 06:58:04 -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=@linuxfoundation.org header.s=korg header.b="e/nyoIpL"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233731AbhJRN5c (ORCPT + 99 others); Mon, 18 Oct 2021 09:57:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:57730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234183AbhJRNzU (ORCPT ); Mon, 18 Oct 2021 09:55:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6829A6137F; Mon, 18 Oct 2021 13:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564403; bh=IEVXBQ/6xZ+vbYCVhttAvoLjwdG6FbycEd4remA6ftM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e/nyoIpLGZmyO4atlS1zxf6ZPcpq9p8w0tIEAFvyN4JcaMx67k/aG3oDQ8BWwnYXP sNyQBdx9+5U/RISrltn+iPQisXmqCAJl+z4cZmE6CAsigQQAisHkwJxTHwYJGVw6ho 8zbFYqBevIC90RIyncwGJxjDI1zaksCj6T7bIBrs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Nyekjaer , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5.14 077/151] iio: accel: fxls8962af: return IRQ_HANDLED when fifo is flushed Date: Mon, 18 Oct 2021 15:24:16 +0200 Message-Id: <20211018132343.186253685@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@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: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Nyekjaer commit 9033c7a357481fb5bcc1737bafa4aec572dca5c6 upstream. fxls8962af_fifo_flush() will return the samples flushed. So return IRQ_NONE only if an error is returned. Fixes: 79e3a5bdd9ef ("iio: accel: fxls8962af: add hw buffered sampling") Signed-off-by: Sean Nyekjaer Link: https://lore.kernel.org/r/20210817124336.1672169-1-sean@geanix.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/accel/fxls8962af-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -738,7 +738,7 @@ static irqreturn_t fxls8962af_interrupt( if (reg & FXLS8962AF_INT_STATUS_SRC_BUF) { ret = fxls8962af_fifo_flush(indio_dev); - if (ret) + if (ret < 0) return IRQ_NONE; return IRQ_HANDLED;