Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2480955pxj; Mon, 10 May 2021 04:08:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxscD93MZjgepeHSL5vN8GACWF2TpAft0XYw2rxtulHkVSAwtNfzlReT7ns5dbjYrW8jAwM X-Received: by 2002:a5d:8e08:: with SMTP id e8mr17738229iod.47.1620644888856; Mon, 10 May 2021 04:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644888; cv=none; d=google.com; s=arc-20160816; b=SJ8aBrzds7gNiC2gGwxqXpJPPxP8RPVKiPDh/2Ql8gQtOgUK4klZgKT2zWa2RsRSoz yPjLNz9drGZrPALgFBdMz6zlGPkvaHL0mj8SSVpwWsWvLmsM/3lzaNhlzR6HRU3Nyb9K 4ms0CFfMSS3CeO+T03GYotaAH8AUcN3+RYZne74xBQxG2RHP7PjUWBg7odaZQQKgz4Cc BrukMWVB9TMRvB/TeaJg+oyLXg8MqjpIIMlt6n/MC8m3lW7KCYHiwdfYA+TeLUS9/iKD p5+u8b3AuJ7QBCGOT/Q5VrSnjQIBg2B6ngb9NF/93by6+1FVyQC5N96pt7skbhOqh1Xj ELPw== 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=Q6+h6CAIa2JeYPpfI3v4+3rncRuspREOkaCcORGkgq4=; b=LpTNPbfk9NkoOVxnl5cR1cQJOo8mNHf+TkpzGJENPOOa03Ei+MOo2/94eYEg6eRbr/ 1QHR/3YRBz6+MiRIQ98LnoUA8Wp1Z11WwmopALZzm4ow51u5ynXrxTGFw3frMwkXR0Aj fYPVYrPROfww1iFdC/ez4adRbjsJ3lgh039aAdR0znworsRkFg9RsTVgQWQ6rk5lrRE1 +yNlBQ/8kprdz97g/Nl6XdUjTPrbfYO9hDmHWLJYo2FHEvRXk37O3j9zlRqzlwjnEuXB h+DuNKxidPhjOLUsJ32eugOxdi5nfUEmN3TTxGBtdyawuaPoxjXiPy/GhqIb3u1rDahT fGAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="gzl/ECHB"; 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 x20si15365777jao.3.2021.05.10.04.07.45; Mon, 10 May 2021 04:08:08 -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="gzl/ECHB"; 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 S233421AbhEJLEJ (ORCPT + 99 others); Mon, 10 May 2021 07:04:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:57592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233370AbhEJKpl (ORCPT ); Mon, 10 May 2021 06:45:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 30383619A4; Mon, 10 May 2021 10:36:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642975; bh=M8Fw1kys6+G6wwPjb5qVzyUf6hZGtRAEXQedwGOyilo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gzl/ECHBlWMPQEtwu6gBqCUKUCqyLr5EMvLgA7tldoQ0nfaQiJP6kLFf6P3Hn2aNg aVUYcUFMaGyVP5mZHhTvyT74lffUF6m8q73vUk+JsSB9YvaPUrP7/FR9dZIq9eJYZQ 36awDcAI0pvTt7FgbMxCzz4H0RbqfTNHgGkKxJiY= 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 5.10 129/299] media: ite-cir: check for receive overflow Date: Mon, 10 May 2021 12:18:46 +0200 Message-Id: <20210510102009.237644288@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 0c6229592e13..e5c4a6941d26 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c @@ -276,8 +276,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