Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3790922imu; Tue, 18 Dec 2018 04:20:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNTtUvE9QO7l7g3NlOzTDO/a9ji/uGdMN9FIa7XVGYHz1pyXOmYr7WVE9vjmeJMbaf7BH3 X-Received: by 2002:a17:902:9f89:: with SMTP id g9mr16449427plq.214.1545135615694; Tue, 18 Dec 2018 04:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545135615; cv=none; d=google.com; s=arc-20160816; b=MfpAEjuS/Q8yPX8+BZfnLlMeLmDDCOWCmP09NKxeqyNspd81LN8eD4bm3k5SqzVxZW NWiwduD9pMohO4hPDiI1bpc161X3rfxJjjoA4iDpSJvm2dUEYomDlJQhlfb4B6gQrMI5 6zJkJdkRBb4wzeR28BG0fcwQhTR0nLEqOiqHmOgFrC5jAmbvIkg19IBoS4u/LArR6tXu a1EbLnlUzRCuv/tOk4PTbIpYJhcoFAB8fd6C7U/UcKdx5Szb4JWRbPM/Y3Fo05vwWT0f xeBWcj3hoK3Fzd1qZeaAz6TqwFxX4iakbG63ytdcnle5+4B5ccaydOFR/V8mck13EoTX s0tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=gJ27nswbrpfxVG6qA2cxraDTu06pZ4WKxOLJS8Arquc=; b=JGpM7+0VvJX+TF9I1DVVEVwb4bamkQSf8d0d4ccZuJkKydW8D5YRbD+lEM4om/rJGX 3Vyao4ftmrdiDTWKFN/CLwJ4QuhkdHrCD8y2hSK/saoUa6Ez4dprr8Tz2LZYzyISM/Nq 7lESAaU/YB8XxR6dYhA0p/PIS2Jd+RmdUsyjkkzcwLPmcz6DZQsijD+EKw0th2bHnI/U YezpWIl2iPnKL3HBmgiUYmbvPIYkFVIymNoinvjY+zEYVQwtWu5tY8rXrOXkBua2i6gh j0Pz3w8ir/bDFJL7bkjQeVSBOsiC7MAmOLyoKRntuwFRy6a1I90rmeK4QKIRIZQWtID5 MeDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=GNS6SfUp; 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 f10si13300816pgl.528.2018.12.18.04.20.00; Tue, 18 Dec 2018 04:20:15 -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=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=GNS6SfUp; 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 S1726766AbeLRMTA (ORCPT + 99 others); Tue, 18 Dec 2018 07:19:00 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38189 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbeLRMSz (ORCPT ); Tue, 18 Dec 2018 07:18:55 -0500 Received: by mail-wr1-f68.google.com with SMTP id v13so15670236wrw.5 for ; Tue, 18 Dec 2018 04:18:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=gJ27nswbrpfxVG6qA2cxraDTu06pZ4WKxOLJS8Arquc=; b=GNS6SfUpxj34SU85j/K3BuxG0Zrs4chu/XCYqcWqcJyjFrMfSRSyYkfJBlmDXrIxce d59pyoiI4dIhRsI/aP0UGwBDu/N6ylueeIVmFMjox1+N3Sg1vXvBtKVT87orSTQM9lyL O1jKMyXDsRj1De5lnPreLB7QY9XBDClvjzvtBO4cgpRSzISEF5VsESjSlNr8qyPDOAGk FUVezzvflH6RoqwskrHshyXNFNe67kSJCIDkJosVYG/t2STFcZQYnieKzrrfbfKB/OlH 2WRqrPJL59ICy9FmTnOWsmbH4TxrB0iUb4xI+xR+ZyENkz9eTfwhg9oKG4YB2I2tnlow 6dcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=gJ27nswbrpfxVG6qA2cxraDTu06pZ4WKxOLJS8Arquc=; b=GDdwHDnaXoTaqlztIE5LLl5jwQIFhGE1fFURbfbkE66iKpSpZhBF+un5WOhUOZdKeU 3BLK57qjoBEegjIIjEt26uNJYQtDs2ixA6DbXc90EFhDl74H2jHvKoV6p6dl2tFhOAgZ 3ka82NvLCj2sYb9bOCQ/CLMX7fTAUhthOyRbXO3mQyKIUcFQzDivFrX4/NBWth5KXah1 X5KsL5dIR5oAQooTviNQQkO1rCjMZFNm/dkrLvxWPlicxnCHWm7ftkt38AFzLIIP3jBm fdZ4A/qOFmWW8KrnXerr/1oJ342LDzIcNSPjMkvd+r8HrcRZqKNApKw72newrhq8IKD0 HkrA== X-Gm-Message-State: AA+aEWbDHdAMeEwYFZnRJqhQVYdfA+HElN0PqOsOFF0g3kI31YNd42wX 03x+ti/pxla7sJ1vT/UK5ctDKPOPBnyF+A== X-Received: by 2002:adf:f28d:: with SMTP id k13mr15173271wro.78.1545135533622; Tue, 18 Dec 2018 04:18:53 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id w80sm2290393wme.38.2018.12.18.04.18.52 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 18 Dec 2018 04:18:52 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, Greg Kroah-Hartman , Shubhrajyoti Datta Cc: Nava kishore Manne , Jiri Slaby , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] serial: uartps: Fix interrupt mask issue to handle the RX interrupts properly Date: Tue, 18 Dec 2018 13:18:42 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nava kishore Manne 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 Signed-off-by: Michal Simek --- Changes in v2: - Fix Nava's email address to align with patch email address drivers/tty/serial/xilinx_uartps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index c6d38617d622..094f2958cb2b 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -123,7 +123,7 @@ #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 @@ -364,7 +364,7 @@ static irqreturn_t cdns_uart_isr(int irq, void *dev_id) 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); -- 1.9.1