From patchwork Mon Aug 17 07:22:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 7023751 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 63E28C05AC for ; Mon, 17 Aug 2015 07:25:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98EAB204E7 for ; Mon, 17 Aug 2015 07:25:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C710D20601 for ; Mon, 17 Aug 2015 07:25:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZRElR-0008C8-5h; Mon, 17 Aug 2015 07:23:25 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZRElB-0007tM-Ff for linux-arm-kernel@lists.infradead.org; Mon, 17 Aug 2015 07:23:09 +0000 Received: by wibhh20 with SMTP id hh20so72524707wib.0 for ; Mon, 17 Aug 2015 00:22:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=rofPAF6unPFdrhEKoDnR4hlMC6/Fl397+buyQ8oA17A=; b=k20ZrNu5P3qsuW9/JsparEexMt2lH+BEHh0twGwb/w53QV3Vx+QgWrpRTk2RcEf3iu GR2noyNcGsLIprQZ7kOZXDm+dzKCbJoHZyr9NuxwIlKeIOkvPV2iK/NI5YrMsfDD1BzD wtIjQ2Z2nNVkQUeHRp7CNe2Gs/XlQIaN+UVyL3so4UT9k7AKf+nQBAU941oyi9qS5LKI ICcJ3MqbUXwVcPctPQftPRyoW63xnXJwZp9sSyJ+0fqLt0GDow3P1l3U0qhScfrBMRK9 lxr76GcNV9AXzKKWqa41IgETf+K3/CwCp40aywVGV+zvuZRt49XWtTDlFeJJWF2uVXCl ILWg== X-Gm-Message-State: ALoCoQm1M9K8lWbMpgwUAhCqYvP+TAWi3Ofj14787r6prPzS9blvlF3mPXZUEgjBf/z67cwqnF/e X-Received: by 10.194.47.209 with SMTP id f17mr2896wjn.39.1439796167559; Mon, 17 Aug 2015 00:22:47 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id eb3sm15362556wib.24.2015.08.17.00.22.46 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 17 Aug 2015 00:22:46 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Subject: [PATCH 2/4] serial: xuartps: Do not handle overrun errors under IGNPAR option Date: Mon, 17 Aug 2015 09:22:32 +0200 Message-Id: <41df6eb35d69801afa5b686a6974e3c3bf65178a.1439796149.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.3.5 In-Reply-To: <5b154ba97bcd79e49e2131152eb2fc1761594a6c.1439796149.git.michal.simek@xilinx.com> References: <5b154ba97bcd79e49e2131152eb2fc1761594a6c.1439796149.git.michal.simek@xilinx.com> In-Reply-To: <5b154ba97bcd79e49e2131152eb2fc1761594a6c.1439796149.git.michal.simek@xilinx.com> References: <5b154ba97bcd79e49e2131152eb2fc1761594a6c.1439796149.git.michal.simek@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150817_002309_669784_BE77EA8A X-CRM114-Status: GOOD ( 10.27 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anirudha Sarangi , Jiri Slaby , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , linux-serial@vger.kernel.org, Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Anirudha Sarangi The existing implementation includes overrun errors under IGNPAR option. This patch fixes it by including only parity and framing error under IGNPAR option. Signed-off-by: Anirudha Sarangi Signed-off-by: Michal Simek --- drivers/tty/serial/xilinx_uartps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index a3020344ac9d..c4437e8929ff 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -691,7 +691,7 @@ static void cdns_uart_set_termios(struct uart_port *port, if (termios->c_iflag & IGNPAR) port->ignore_status_mask |= CDNS_UART_IXR_PARITY | - CDNS_UART_IXR_FRAMING | CDNS_UART_IXR_OVERRUN; + CDNS_UART_IXR_FRAMING; /* ignore all characters if CREAD is not set */ if ((termios->c_cflag & CREAD) == 0)