Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3535545imu; Mon, 7 Jan 2019 05:15:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN54vm4hYVCxEjbXyS48D7BrkWeUy05axdAPPUcwXKcE6F28Y24whQ1u7eeEA0UDf6PStz+j X-Received: by 2002:a17:902:292b:: with SMTP id g40mr61882562plb.82.1546866900168; Mon, 07 Jan 2019 05:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546866900; cv=none; d=google.com; s=arc-20160816; b=sKFTAXXYcxtDawGwoiy3aEhlWatwWQkHAIaml8LEjfRD5Z3UHAoK/n8rXKncYVHNK1 kSx4G3ikGlBydjOAhr30vt5ROLMzRhdERQFbIYwOHGQqG30K93bfukrciexbPOLOr2JT r67il0rApIuoiDduw2m3NFTN7LBmqG16fBabY4oQOZmpmZvdneZ9E9FmUvqnAtjykDWx 11Vkv7vrHDZV1FgHU/MXuPMSf9BUwappL9ugseQQPN3i7zZ3zx12Z1hhmNTycIpFP1rm qUeDwWoqn/EkA7YI1jef0iiuHCX/Y2yVSLI5KV6Jg1c0xNIYRzgP5YZ1nZRz8WDiy1Gg 2I3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WnICReve0FC9MDr8eqpK3ETyIYUyNzkzXfrH/kWoCz4=; b=TgDNKyuNr4Lg2kUGEj7uI4hSRFDiwWi8Alxj8k2vJNLyCBn8AAeb9CAaNuT2XRDrN8 rAJ87VlFYab3Nfl6QNiJfRFzY2SRNncFh07VHfJ0wE4caBU7gaEPofB/nVKUEaKjcVu/ yMEdgzi7yGhQNhq1Y7nMCDqWrGrtGeYDplFcwzld8sklS98sXiRvLMMhDKe5jZdlztyB O8EGEAGh4OD462bfooowPxyzG1wiF5Nt5DMkpcwFuRlf/rVYDd8awOzLyiM1f2m40FLz cS4ufE8LHA9JSbfckanNEwTlTl9N+zDIIUSAxgc6yaF4etgt5xYyOvjPRdAu8m+SAElA RqGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gxc0+BkG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si58303743pgh.251.2019.01.07.05.14.45; Mon, 07 Jan 2019 05:15:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gxc0+BkG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730827AbfAGNEk (ORCPT + 99 others); Mon, 7 Jan 2019 08:04:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:52268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730812AbfAGNEh (ORCPT ); Mon, 7 Jan 2019 08:04:37 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6247221736; Mon, 7 Jan 2019 13:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546866276; bh=/U1qJ53Swlbh6+ONZmtfCfT2lEdzWrtY/sGNbjrPyiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gxc0+BkGMRhyjlf10qk9jb/HO/oVNUXifUm4C8mewWCw/sJMt8ZtpGfFzMS4GU5F0 ouCXrbOSyqFO6n6NqOIWfbS7im+8dDWxERhf3Rs/ZGbyMZ/0zXaXaVt+gQgyer6A0R 4xWi/V3+C3UrTD9Xl0rz+gW7sNxGWAElwDrz0MyM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nava kishore Manne , Michal Simek Subject: [PATCH 4.14 086/101] serial: uartps: Fix interrupt mask issue to handle the RX interrupts properly Date: Mon, 7 Jan 2019 13:33:14 +0100 Message-Id: <20190107105337.618407713@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107105330.372621917@linuxfoundation.org> References: <20190107105330.372621917@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nava kishore Manne commit 260683137ab5276113fc322fdbbc578024185fee upstream. This patch Correct the RX interrupt mask value to handle the RX interrupts properly. Fixes: c8dbdc842d30 ("serial: xuartps: Rewrite the interrupt handling logic") Signed-off-by: Nava kishore Manne Cc: stable Signed-off-by: Michal Simek Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/xilinx_uartps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -130,7 +130,7 @@ MODULE_PARM_DESC(rx_timeout, "Rx timeout #define CDNS_UART_IXR_RXTRIG 0x00000001 /* RX FIFO trigger interrupt */ #define CDNS_UART_IXR_RXFULL 0x00000004 /* RX FIFO full interrupt. */ #define CDNS_UART_IXR_RXEMPTY 0x00000002 /* RX FIFO empty interrupt. */ -#define CDNS_UART_IXR_MASK 0x00001FFF /* Valid bit mask */ +#define CDNS_UART_IXR_RXMASK 0x000021e7 /* Valid RX bit mask */ /* * Do not enable parity error interrupt for the following @@ -366,7 +366,7 @@ static irqreturn_t cdns_uart_isr(int irq cdns_uart_handle_tx(dev_id); isrstatus &= ~CDNS_UART_IXR_TXEMPTY; } - if (isrstatus & CDNS_UART_IXR_MASK) + if (isrstatus & CDNS_UART_IXR_RXMASK) cdns_uart_handle_rx(dev_id, isrstatus); spin_unlock(&port->lock);