Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3677742pxb; Mon, 24 Jan 2022 15:07:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0E0jkw81FrLvWhARxLY0uYSXMrlLuUPTXaGs0+/baYsUfRDb9mO8rOpfVdt3xZlFqQkFh X-Received: by 2002:a17:90a:4dc9:: with SMTP id r9mr539747pjl.156.1643065660632; Mon, 24 Jan 2022 15:07:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643065660; cv=none; d=google.com; s=arc-20160816; b=Knii5C3WkDcKcHuGF60qGknVrDHcziIT5Q1p3SU1WnWQ2tOjnBo4GCLhqxyCTmk4IU q9Vsj/loWtWzLtjplPW97pugC00YQLOZwktyephqxWvqBHC5lA3IgmOMRLRZKv+nhixR DAkYXrAgzBzwPzZnKdZGQ4jbCREb8iJhOCuWF+thqlHe8uP5W27FiT2xmdIsbCZP3ETm YqhouVwivHKx6qor16KnM6V3rzTlvVyeE5e+bLS1kF+kamj0yud7miqJOIxnmd3HDvMO 8wsVklQVhgQQCovcMPZqv6fJ87PSz/ldpbwR0piZtfpuYNXw+cPbeW1lRmSlFQgoG+Wm bl6Q== 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=bWHt8I0GnhNLIrwDNN2cgibn+LRWW8M1FtQe+XtpZsU=; b=un8L2FSyJcTGq4WizWYk+/g37iPUrj8twjuL/+Mr9+MCVmXKS5rIo/F13ErB+J8lcG UxZpHYxcVHPo+6zqc+WU8IWRPz+kwlsXBt2NuvEiqjVjbA1aqhUipUe5mk+MXoZsaB4U M4RPR3s2HJAf0+uD88FK8fTLLb9VwShbAULt8J7k1xlqSbnUQcusJ14bcTpsT6ctOxZa Gl67T3amWaAei7phEDQBJBX+tRnBLenpgQVJmMNfv+cko0/uSexMKzdZjFxbXVxkTeQN tIuerzKzkyOeyeoXIbinxPmvuDFbrCVTGldga2rSeLoTVFo0rFjefh6NyvRYz1vxI5Hu OU0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k4IZFdcZ; 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 j4si4060233pld.288.2022.01.24.15.07.28; Mon, 24 Jan 2022 15:07:40 -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=k4IZFdcZ; 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 S1843230AbiAXXDf (ORCPT + 99 others); Mon, 24 Jan 2022 18:03:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458116AbiAXVzH (ORCPT ); Mon, 24 Jan 2022 16:55:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1AC5C07E2AA; Mon, 24 Jan 2022 12:37:21 -0800 (PST) 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 3E05D61545; Mon, 24 Jan 2022 20:37:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 218EAC340E5; Mon, 24 Jan 2022 20:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056640; bh=WPTVkbAlftiPDcELrGcS+39e8k3c46GZhJ5lqBJBBQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k4IZFdcZl7IgbeJ7njsIxEF3B08Vhb+m8MUaqsxRrbiGxpiEYhsE+93A6woaEQX+O 7SdfAnVx63UQveVvSKDue/BtpvqbfMX1V0bkh3v7QgjsK3zn12z7GCzwH0KTlcMB4V /tcXpFDKt9wHpFBBCqUGAmcRUU+2aTjC+iXig9Eo= 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.15 552/846] media: igorplugusb: receiver overflow should be reported Date: Mon, 24 Jan 2022 19:41:09 +0100 Message-Id: <20220124184120.076833679@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 effaa5751d6c9..3e9988ee785f0 100644 --- a/drivers/media/rc/igorplugusb.c +++ b/drivers/media/rc/igorplugusb.c @@ -64,9 +64,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] * 85; -- 2.34.1