Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9039446pxu; Mon, 28 Dec 2020 05:09:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCLNlVwHYE7HXFqAjcKrKquVCw1PQO4TprJUPqonbJ/u+JdYCg+2BCGILEIVTj0gc6uS8Z X-Received: by 2002:a17:906:3553:: with SMTP id s19mr40740925eja.95.1609160945122; Mon, 28 Dec 2020 05:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609160945; cv=none; d=google.com; s=arc-20160816; b=sUhcUVOuyG4GMNXBizW1ZH2zpnYf0KZQ+s70b36RvXjiAR8nQ4g+HVHNbTLNqsBEqa hcY5jz7gbFqX7iOQBWp6ymv/1aXeD4q0RIK3ms+qIEIv1Sgr/JOEpwSWgMz6e6GBjY9K u+E1Nmwl/CCUpdPkAbR/jXLq8OPzuINjW2MNcKJqbF3tQRXytCiP7wsEH5Jm6D60S+03 y1CPkZ0FYsSUvMhnjN0iK56/5VNO8g9GQxybY7J+zqf+ZCEiXRcAZ2LR3jZFTkNR5OwK vE5BN+t0zG3JDbxfLHmsi0gBEnS76E0ZyuoXxrXazmyoJyeCYe18Z/ftZJGdnNFbCsh3 2eAQ== 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=pNACdJZf+lMF1stEzXt6/iNo725AQaA8jDT5fNkiPKY=; b=zFz5zKiUG4946Op5oj9fx6OMI+DQakAVChNiwgWyu4PLAFjCCr8TjEtwF8FLJZ6Se/ TNF4xTpEyMC8d3injLYGZSfBTisU0VoMy/BZr/5ZUCU3YVrawYSdkceU+Mc3sw6CuPMq qxXFg+Oq817AZPIf019JyKhLtUHjss3zsQGSpeZaCggjMrFDaOU3OwZoFNLc29AW/xgK vjx6++iFvg0DeTqI5twXQemeinChfGsXZesULGDpzNr8ormiMNdcLHtApvZ1MCoAofwl lWnceyKKgbdPLch3WPGOR0nZwcOouNcdwTZGc33v2O7R998jhPMarECGhMiChf+0+NAh JQdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ui7ojaJm; 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 q8si18394262ejj.24.2020.12.28.05.08.42; Mon, 28 Dec 2020 05:09:05 -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=ui7ojaJm; 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 S1730646AbgL1NFg (ORCPT + 99 others); Mon, 28 Dec 2020 08:05:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:33072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729829AbgL1NFO (ORCPT ); Mon, 28 Dec 2020 08:05:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3B9B22AAD; Mon, 28 Dec 2020 13:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160673; bh=LzODAm2jd7+cJ0Nb28iwyizDMXqK1TTzgakTksqgk5M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ui7ojaJmivBuJ0kJL/f376sCP8mt90DVEupCihyrauF/Nd++PDABNQcPZ3xliYiyx Pz2tkpGYUFJ3QyoauDEMpWypL36dCgqoGBzWyb9+zyjcn1CXiZMftCx2lzuUkJbswc Kxh+teewMkcVjxxyPVHteUug4lAbKucGFCMT5RYY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Maxime Ripard , Sean Young , Mauro Carvalho Chehab Subject: [PATCH 4.9 132/175] media: sunxi-cir: ensure IR is handled when it is continuous Date: Mon, 28 Dec 2020 13:49:45 +0100 Message-Id: <20201228124859.644741059@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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 commit 3f56df4c8ffeb120ed41906d3aae71799b7e726a upstream. If a user holds a button down on a remote, then no ir idle interrupt will be generated until the user releases the button, depending on how quickly the remote repeats. No IR is processed until that point, which means that holding down a button may not do anything. This also resolves an issue on a Cubieboard 1 where the IR receiver is picking up ambient infrared as IR and spews out endless "rc rc0: IR event FIFO is full!" messages unless you choose to live in the dark. Cc: stable@vger.kernel.org Tested-by: Hans Verkuil Acked-by: Maxime Ripard Reported-by: Hans Verkuil Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/rc/sunxi-cir.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/media/rc/sunxi-cir.c +++ b/drivers/media/rc/sunxi-cir.c @@ -132,6 +132,8 @@ static irqreturn_t sunxi_ir_irq(int irqn } else if (status & REG_RXINT_RPEI_EN) { ir_raw_event_set_idle(ir->rc, true); ir_raw_event_handle(ir->rc); + } else { + ir_raw_event_handle(ir->rc); } spin_unlock(&ir->ir_lock);