Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4B1AC4707E for ; Wed, 24 Nov 2021 12:16:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243693AbhKXMSp (ORCPT ); Wed, 24 Nov 2021 07:18:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:37610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243034AbhKXMNT (ORCPT ); Wed, 24 Nov 2021 07:13:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DA14161131; Wed, 24 Nov 2021 12:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1637755652; bh=eLngJBpzQSIOzbGKE1HM+YWxlS/Q0K1g0EaMU5UuOUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nake4SmzewpTPaOAv7jNQO9Q2wgtPGyAc3XyP46kX7omq9OO3f6zcNvJd2ba3lfaC F9CONoJgVXE+XYMsFMW0Mf1KtKbG6UnrDM2vlEQyshmBZrpkF9F8mhEgg/PLgIxj16 4hNAEO7UhyTaTVtCLa64qq7L+ROBGYKdsNMj2SEo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bryan Pass , Sean Young , Mauro Carvalho Chehab Subject: [PATCH 4.9 010/207] media: ite-cir: IR receiver stop working after receive overflow Date: Wed, 24 Nov 2021 12:54:41 +0100 Message-Id: <20211124115704.288354540@linuxfoundation.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211124115703.941380739@linuxfoundation.org> References: <20211124115703.941380739@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 fdc881783099c6343921ff017450831c8766d12a upstream. On an Intel NUC6iSYK, no IR is reported after a receive overflow. When a receiver overflow occurs, this condition is only cleared by reading the fifo. Make sure we read anything in the fifo. Fixes: 28c7afb07ccf ("media: ite-cir: check for receive overflow") Suggested-by: Bryan Pass Tested-by: Bryan Pass Cc: stable@vger.kernel.org> Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/rc/ite-cir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c @@ -299,7 +299,7 @@ static irqreturn_t ite_cir_isr(int irq, } /* check for the receive interrupt */ - if (iflags & ITE_IRQ_RX_FIFO) { + if (iflags & (ITE_IRQ_RX_FIFO | ITE_IRQ_RX_FIFO_OVERRUN)) { /* read the FIFO bytes */ rx_bytes = dev->params.get_rx_bytes(dev, rx_buf,