Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3547656pxb; Mon, 24 Jan 2022 11:57:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp+UQxKgC3YAKsUWLF/kfle3dzl5oYgFTEAVXdjgSx97AjwLchC9p4L5169uzeMqEzJPNg X-Received: by 2002:a17:902:a3c7:b0:14a:d8bf:4e09 with SMTP id q7-20020a170902a3c700b0014ad8bf4e09mr16137911plb.62.1643054250704; Mon, 24 Jan 2022 11:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054250; cv=none; d=google.com; s=arc-20160816; b=yvKEknJI53d7h5/ilEbL/2l3+qYB82e1BhuAHMyoBBZ9IEjCbuRzlK1DnRK8im8w10 gZYvfGmufYycDy0NzAN20UJHRbmtO/h/Cb3Y4BkGDDmdZD61NPEye//CNHNvgQe5gKwe vz3y51cKu2yy2JHH0ppDIIL+W9UFn4tj++W6dfkSCTlRM3nnOmnekcc0FRUfRH3WmO38 /hR8NaTmgIEAYqtYfqt8jtsjaBF2nv95YY6RXRhBUp0YQPFtT6Ojv5jbr8yhOkDtpanF MGWj4R6bLBCHmzlMEeuX41CqxQwVG71iEjDUQA6tSqBXmpUl+PIQYXZz8/VFhOX/3Zng Z3og== 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=uiACDafsxoGjPcV1CADz8Y+4WAetmZu0EubN7HV9qjU=; b=EKncU2Yk2PF4spTVmRg6apaS4m4Iht88EJr2jkci/wH4AO2ImywJqA+3Nk3PnCvUCh //rCwxs9Bto57xHDr4fzNs0kcjr5z/VIDBrIcivdMfBxphUDOP2iiWBrPk2FcJocF4H6 R7/mdmvpEGZlmXQHD8mOE+oTT0pUWaMNqri6wFnuJufle+NekRjI+eMu0VA6KjUDJYoo 4Kxi5nnsNdISQ0sWkWnkATlNwtVwQMBH7BSq1UkterU0Z+13e1zi04cumAJKGzwXbCVf FMl31lokYSzSrIEsHtWyDpnuML75jqzxjh53JEFCLPghlqvOsalw9XS7+b3GrVcbSzmh rbug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ThIk+aW/"; 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 c11si12275543plh.322.2022.01.24.11.57.17; Mon, 24 Jan 2022 11:57:30 -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="ThIk+aW/"; 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 S1344049AbiAXSxO (ORCPT + 99 others); Mon, 24 Jan 2022 13:53:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343720AbiAXSvh (ORCPT ); Mon, 24 Jan 2022 13:51:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F23EC061759; Mon, 24 Jan 2022 10:51:28 -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 ams.source.kernel.org (Postfix) with ESMTPS id 37D20B81227; Mon, 24 Jan 2022 18:51:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9693DC340E5; Mon, 24 Jan 2022 18:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050286; bh=jfkLL6rXolBMxv55YyFzWn2CWtcA4vLhtAVsUilZUhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ThIk+aW/NpGrWPJupeat7WFTrwMVmRGfnrHeIQOBydxutk8ebL2YAbsbmn6GfwRnG 0dkyp2AKc+1ijltv7J36C+L6+LxdzidWXlFYBBzzVJ4K5GrDQC2qME2A2EpHipoFvu 9kPXaLtSpFFN1KbHwKkJrsGVojolomKU/2DOclAM= 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 069/114] media: igorplugusb: receiver overflow should be reported Date: Mon, 24 Jan 2022 19:42:44 +0100 Message-Id: <20220124183929.230821748@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@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 b36e51576f8e4..645ea00c472ab 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