Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9435550pxu; Mon, 28 Dec 2020 16:27:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYz1ABy5MIMdHimNffnjYZankYQpMsSBkflZdx7Ly1DkTymY5gBMZEylZGeNZzP191u+FB X-Received: by 2002:a17:906:eca9:: with SMTP id qh9mr27105888ejb.188.1609201648383; Mon, 28 Dec 2020 16:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609201648; cv=none; d=google.com; s=arc-20160816; b=at8WDTq3SH7GHdhhEqJin9aKNBJiQzRcsNCHoaBCGUR6RrALSaIT6jH2+WH4prCt22 rmMiKmivECIHx+YzENeVz3FxvJzC22cLmf2g8FQqG/+g8tFy4GdecyUMx9sck/u4vvRy 4hehgMiJjVtuztEpErPGUEJR9raAnlfcxF+TpIwUtrnEBFEOE8mngJQJZlXkn4dYQRgt Vw7tqxrFlJwG7dChFrT9KE/8yrhQ59Mgxx/OMIV9eCO01v24ntfFbIfUE0gdfbV14zDt GP8m1PFO3cLp9+FGt3LvHSdBPUbM5JHPYQl85WFO0WD2q10NlYW8Ta/RPJjHaQIAaLUP wJGw== 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=uOft8tGpHmDFgnTVRzEvju5R0MFgf7qfPWiYcCUyMzU=; b=kU1FeFKkvQVH+8Te/xd7yXxCr5YiOjbpwgFE/z8PDbq+3Q07yHE/E18QmUuwExpEfv NopwqIuCY9fhZVailS6VrwwRQTonayEpXP+bAtU1idLodvmFO+LBAIsHuQa1nBpicxwr HLnhYGBD0hmj9Vz80fVRcKrXStU17Z2XoL074T3D+S0/Tb5qlEBbS7PK50M/AFSOIeJS gpr4oHf2u68W3zh28hGnTkexe2Q4iUZFSfKi1Y6QiUPJ503Wx8M2rk5f49Z0ZMF3aUtw E6Zh3RixdCapHKyZhjOzguxI7FyYaMT8josT8BA/Mifa/d0bkJKsvb/xCEWM41F8q5i1 Zddg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gmrFl7s1; 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 n9si21874116edi.179.2020.12.28.16.27.06; Mon, 28 Dec 2020 16:27:28 -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=gmrFl7s1; 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 S2406586AbgL1Pf0 (ORCPT + 99 others); Mon, 28 Dec 2020 10:35:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:54934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407230AbgL1NxD (ORCPT ); Mon, 28 Dec 2020 08:53:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C6176206D4; Mon, 28 Dec 2020 13:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609163543; bh=oyxHf38LfVs3BMuQZNo6mChDDNivTtpjWazb4r/hZUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gmrFl7s1ERhMC1u3xcCiVP+O6e62sHNKHNrWAR6PtSRKvayQvGhPAnW7hTF8nQaJp uZXFgXKpshUuPMtdGYZ/z1EyLzF2o88Xi2atFX13umHiaxaLi+T6D5gzqfwBVxTAR/ N1FYdGWLvesu5YTVUP+kV9+smVdZD3S/j7BXjxo8= 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 5.4 322/453] media: sunxi-cir: ensure IR is handled when it is continuous Date: Mon, 28 Dec 2020 13:49:18 +0100 Message-Id: <20201228124952.702486385@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124937.240114599@linuxfoundation.org> References: <20201228124937.240114599@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 @@ -137,6 +137,8 @@ static irqreturn_t sunxi_ir_irq(int irqn } else if (status & REG_RXSTA_RPE) { 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);