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 31290C433EF for ; Wed, 24 Nov 2021 12:31:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244462AbhKXMew (ORCPT ); Wed, 24 Nov 2021 07:34:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:44540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245157AbhKXM14 (ORCPT ); Wed, 24 Nov 2021 07:27:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3DAA6128C; Wed, 24 Nov 2021 12:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1637756225; bh=pcaQaHRSZaPPOySmsqfDg8FadbWwQYZN4RVJ23sU7dU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jXhQsR7UPAnk8V8Ro/m3GyzqKa0yjnvCGA1grUzlVVEcX18JOMr8VnFgv+r/Ar5ZP FVm0TNGhI5M8o3d4PG0fffOcam27IaS8PFKq/FSrA6BuZyzd36Q198O7i/2dG+AecT fVi8af0mPGybApBkD4vsU/E6syU6KBxIm20zengQ= 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.14 011/251] media: ite-cir: IR receiver stop working after receive overflow Date: Wed, 24 Nov 2021 12:54:13 +0100 Message-Id: <20211124115710.605610602@linuxfoundation.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211124115710.214900256@linuxfoundation.org> References: <20211124115710.214900256@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 @@ -292,7 +292,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,