Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp609146pxj; Thu, 20 May 2021 17:45:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPINJ14M1mM7agTXFSYezCW1BfUT8kuOU2indloEUeDkxdDdghf+l+cWqMC0gR7B7ToTOR X-Received: by 2002:aa7:c7c5:: with SMTP id o5mr7756457eds.31.1621557946262; Thu, 20 May 2021 17:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621557946; cv=none; d=google.com; s=arc-20160816; b=yYP/3O+4dYhp6Ccj9NfBF7EOS915TLer4f2WB3ItQQycCeKVPyJz5HqEej625TzwMt dfMwDwNSSfonP238tIIdRMk0uRU5V8k9lTMSsp+vtpvU31R04wQw/mtdAj1c10V4Ftah 1uBIH4jkO6x27QSYRmLg50KLUtvQEGpszMByhFzZnHtJbfQ42XWbukM7NLi2kW9aG907 DeoZkNVEoOwhK8+FnO9xQZ3+Q6Bp7J9BjRKB1n9tOyPPLw9De8hacnsRgFaM3ONdBjKK ija8QobE1SXXLQ0XO48Nr/jc/Z6u3hMmE33HNgvTfCkz+FXQiv7FqoO6/6XB29vR50AA UPDw== 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=tkIiCbTrm2NnfqU4fglmIdphVru4xqJPQq6opeQhXJk=; b=wTXR3Dgb40GJ0gXF6T82W6SMuGqQwhBT8yCU+Yn9JcbV9i1JZXD4+433SN6WQqM09I fhPx7aoD8i336/PowPv61mwRYfX716t+gz2gjuVmZhiWzjncPqY25GVMY1k4fEnOrhZ9 4mF2LFW8qlIvg0nZsdS/mhRBNA7h/qKHc6SPLGFaCG2Ga4I2axy4XEHJ67xzPgBCe7NP 2y6eQr+t5xJCIGsl2L0lsUKEtgx97W60R+iU1EKX5y2CBYCjuzL2xV0iga7Rjf8daDca 1V/m+zulWOg3F/CAQjsgNfbIfcFtK8Wb3V1wnRDxvZD2BDhuNLoOSlsfsOhW11TQJwtn sLlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="MP/F9xv/"; 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 l18si3622462edv.57.2021.05.20.17.45.21; Thu, 20 May 2021 17:45:46 -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="MP/F9xv/"; 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 S241307AbhETL3N (ORCPT + 99 others); Thu, 20 May 2021 07:29:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:54234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240147AbhETLJL (ORCPT ); Thu, 20 May 2021 07:09:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5B7C961940; Thu, 20 May 2021 10:06:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505196; bh=y1KZOimxnzrONNjyUcvByZsk2dyLGwJrGm9ar+YMXgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MP/F9xv/8ETLjdQV/YX5HtQpO0NxF3hhKyHmHmGAQqpyhB11iAA0r5MMIoNkNX2d9 5P/ePAoZ/wycIJOWPuwYPe7D0qt18BtK1VS52Ur+Xcc6p5OOmafxHttUdkhgexocJZ vDwzp1g8k4DG3Tj6AJmnDIzsqmCswLv5mXbqBbOg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Young , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.4 025/190] media: ite-cir: check for receive overflow Date: Thu, 20 May 2021 11:21:29 +0200 Message-Id: <20210520092103.007082724@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 Young [ Upstream commit 28c7afb07ccfc0a939bb06ac1e7afe669901c65a ] It's best if this condition is reported. Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/rc/ite-cir.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 63165d324fff..7d3e50d94d86 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c @@ -292,8 +292,14 @@ static irqreturn_t ite_cir_isr(int irq, void *data) /* read the interrupt flags */ iflags = dev->params.get_irq_causes(dev); + /* Check for RX overflow */ + if (iflags & ITE_IRQ_RX_FIFO_OVERRUN) { + dev_warn(&dev->rdev->dev, "receive overflow\n"); + ir_raw_event_reset(dev->rdev); + } + /* check for the receive interrupt */ - if (iflags & (ITE_IRQ_RX_FIFO | ITE_IRQ_RX_FIFO_OVERRUN)) { + if (iflags & ITE_IRQ_RX_FIFO) { /* read the FIFO bytes */ rx_bytes = dev->params.get_rx_bytes(dev, rx_buf, -- 2.30.2