Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp413021pxj; Thu, 20 May 2021 12:14:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyODSGsonZTSG+jkfb2hrVAPF77wTQ04PCVYpAaFW2MfRVIVDUDzrZSP1ZEFU5avQVMpZVS X-Received: by 2002:a17:906:dfe9:: with SMTP id lc9mr6015626ejc.62.1621538040763; Thu, 20 May 2021 12:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621538040; cv=none; d=google.com; s=arc-20160816; b=xZBf0+qwIG3VKUQ/Cy5cjIFWYPg4PDLHAmLd83r1NTPOruW9HiS9jP9k0MQjj19E/5 F7/XrvEyYfWKBd4PpEUkn5BoJPi08N5Y7bTUV+JlUviaViWqUJNvP0xWMUyCA8Wtv4Qb xRxqygyb62r84H92qJU6NFcBc6Li0hevVODa82CdmeRk/6WukHerkCFluPxeyXkpdy24 u5HHqCepuFblIB5gqB1C/PjMw9s7M5StQVvbvoqdux5aNo8bgqvFknqUilJNTJpDiU9u BPQmQolXJDFngvjhGXw+x5VBluCD2eUbtg2033Owm/Z6VlIT6Hr7cZjks8mePAq3aMfb f+LQ== 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=zEozZg6FNUiUNy+TyUkaCn6XZrbygB3C1TJGtFbZumE=; b=lI6PXys0aeIegyPoYaAb9bmC6ZISWFadSAbYFGQFAgTlxw61jvTIRkbY2I2IX4J9PG Potw9/axqyCt8atJ5jIa7YTsl8dqtn90DSPhpdwdOHQhF3JTpYVB9pZ5F8EdfK6ryvX3 gHnVbrpL0jmuwQvBVsiPDrMUkdPOxZZoLEllCIbTTIUIqjJi0AFjf+RDI91PTn1mXtWt +26Q4H2ZnDk5X+qClG0WgdQC74VjXcdi+CTUVPzB1yDsPVL0cBEPTiubunBu4ma1J/d9 cO/jpIySxyoYyTzgjG6a7uD0Mr8rI12iqQpRS39vrcYEyzwcqaWWPVibWbc9wvz2eH59 lzKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t61gXiA+; 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 i27si3106246ejh.691.2021.05.20.12.13.36; Thu, 20 May 2021 12:14:00 -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=t61gXiA+; 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 S236860AbhETKaj (ORCPT + 99 others); Thu, 20 May 2021 06:30:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:51258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236167AbhETKSD (ORCPT ); Thu, 20 May 2021 06:18:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 89912613F3; Thu, 20 May 2021 09:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504001; bh=jFWwtTE5bvOh7Wi21Gb39v5DHA/gpFqzU5H/FeuTnxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t61gXiA+AkcdPDgyXPF0vuo2wRHk6harH6qCYhtHol9UVNpAoCZhCAovA4TUvLXbv cIt+P+UBdLF5fMYobnmFDnzqdiUsN45KqBAFfB1iAMg9KipzWvb8iytVz9cLt/jccq I4OwPu0h0RVCoY3H/A5PmgSv9jxfr7Anmws73bLE= 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.14 048/323] media: ite-cir: check for receive overflow Date: Thu, 20 May 2021 11:19:00 +0200 Message-Id: <20210520092121.758201695@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 65e104c7ddfc..c7eea16225e7 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c @@ -285,8 +285,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