Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3556157pxb; Mon, 24 Jan 2022 12:08:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJybrx0wYRMjyC+7cIilhQuhM7alRz4Cbiv8+NNJM2jhVQhcst83RvtHh+Q2kyKWUbdKZ+Mx X-Received: by 2002:a17:903:11c6:b0:149:a969:7825 with SMTP id q6-20020a17090311c600b00149a9697825mr15775795plh.33.1643054901584; Mon, 24 Jan 2022 12:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054901; cv=none; d=google.com; s=arc-20160816; b=IXu6U/fdrQUJoUtLtttf2gJRx9f3fzlRz0QebQNVkvad5sBkUHa4vdCWGIAZRaxRBi fSyQx+eb/JJ5MK4n8k6dUYqgdS64uTRacMztmE5pdobdOR7lARI1B+wcDe+8zn0VhyKP 2OPbe35RmzlACK84CD/1anKIBk7lCdr/yD0zAjfRHTxHORsSwICm8brKpBz7MamFRq39 Iao7lE5TlfLrWtZUPdI8LKs8msEEtVe8RFcmVClKWjTu6/OC0dt/Y1w31AEbSuXWvJZp Cj9JtBKwtYuf5FzHZsJcC2pU8WOkz99vwBUhOGemNreZhkgpv+4Ath+cj53EOozIgvsB RkoA== 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=8ugxevIhA+m780/vfzywvWBs48gKhZJmfHza9EffBGY=; b=cdlPArVf6v+3QFpiZiBpdM46RBp2B9SWSurCuv3R04bYvP4cIT8aacHTP61yhP0BOI UW/TJmdHLSPMyoAVh67cPT1plhQcqKyvv1VpYkDrcSyUMfZxDGU5jAr7DG9btn3ZTbcp NYEwVKk9P43tDESajA9DyrvbFqY0Aq2F/PbrjsIjilxRHeWJXBZfTxkByRx/WjdR7csE n33+hsv8vl99OUrslaPLEipcHa6JByAJn7Ht602xG6fEJzMlxIlFxvCHGbTi7u/dbbRz uCvk6Z9zRGvn6ISPQ87L0HWvTACe+rA8z4rOydUfrXeH9gHQbr8N7TksKfN7bi1qmjDN eHVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EEgP12C5; 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 f9si16142002plg.447.2022.01.24.12.08.05; Mon, 24 Jan 2022 12:08:21 -0800 (PST) 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=EEgP12C5; 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 S1346035AbiAXTE6 (ORCPT + 99 others); Mon, 24 Jan 2022 14:04:58 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:55670 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344468AbiAXS6c (ORCPT ); Mon, 24 Jan 2022 13:58:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 007CF61566; Mon, 24 Jan 2022 18:58:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B521FC340E5; Mon, 24 Jan 2022 18:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050711; bh=+XtKoOjpVtsjzrCJegCHfhUIBfJ+lHSZtrtZyDlAyA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EEgP12C5wTXb0f+sotmAXuaGiuurV3UwXaGvPnWiJNkv981ipzjZ3SfHddzLSOgV1 I6Hl1yk/KGRw8y3gntfvfKDgS1MfUeOt2RwgQKbtImBU36f3YYDDLgEXpbFVgd1ILX yECXRDYmBO5WdC6A9BJKc6f994x7UbbHS1ihFrj8= 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.9 089/157] media: igorplugusb: receiver overflow should be reported Date: Mon, 24 Jan 2022 19:42:59 +0100 Message-Id: <20220124183935.608122385@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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 8fede658e7ddb605bbd68ed38067ddb0af033db4 ] Without this, some IR will be missing mid-stream and we might decode something which never really occurred. Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/rc/igorplugusb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/rc/igorplugusb.c b/drivers/media/rc/igorplugusb.c index 5cf983be07a20..0f4c4c39bf6da 100644 --- a/drivers/media/rc/igorplugusb.c +++ b/drivers/media/rc/igorplugusb.c @@ -73,9 +73,11 @@ static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len) if (start >= len) { dev_err(ir->dev, "receive overflow invalid: %u", overflow); } else { - if (overflow > 0) + if (overflow > 0) { dev_warn(ir->dev, "receive overflow, at least %u lost", overflow); + ir_raw_event_reset(ir->rc); + } do { rawir.duration = ir->buf_in[i] * 85333; -- 2.34.1