From patchwork Sun Apr 16 20:06:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9683101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B4AF60138 for ; Sun, 16 Apr 2017 20:24:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 254DA27B81 for ; Sun, 16 Apr 2017 20:24:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0534F27D4A; Sun, 16 Apr 2017 20:24:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 824C327B81 for ; Sun, 16 Apr 2017 20:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SwuFrX1cSOIp5MJvke/Utr+fM5MOHdQXx3mOAzTh26E=; b=p7Db1tUnIRlNbF Jh1CRNiX1ZFp8QRHKIvTkun/0wp7bG3vXZ6/8cidc4NZ3Vo4ZeU01/cPgeI44DGCptGvwPQq+bafK CA524s7wrgBaXoMysMLSOA0F8WPOP7GXTjPSbwtQHi8A6lSUuXJA/rKTGdIno5yqutq5mRg5osIwd gmnQWB3cqVuOOK1D+uI1jvfw5lhjMLZX7rDsEIgPYzVFjAXGXurGJ0prOtOvEKfr/ncCZir4wMT7Q raT4PrtM7hF34ojF2/oEhirSad6eL/XtZeBIWyCZFS8igxw2NxFfUn/6fg6QlRfsRpVC43N+lX3Da gIcU4f4FrnagHvWHNtXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1czqin-0003yO-VJ; Sun, 16 Apr 2017 20:24:33 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1czqik-0003r2-4f for linux-amlogic@lists.infradead.org; Sun, 16 Apr 2017 20:24:31 +0000 Received: by mail-wm0-x242.google.com with SMTP id q125so6245742wmd.3 for ; Sun, 16 Apr 2017 13:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=crqeAp2K1+iIaY+ipMifEjTO90dKoqprIKGZt87VauY=; b=U9WO98qWxLFfrhp+otbOL/6VZr3JxmFQAMF+32HN9TOXyF8dwcoUQbgN6WcUgAcqwL XL46LXM3ylclUsIrnEgg/4qQAG0m3VaWrtAu5uviN4QH/8p+njuixSK2p2IIeOXXENwg lIdsoqbQ/fb5D2NMOkL48DIe61RXgguNflRj+qMa37J7HN3CprUIBnODCmpAU0xEFxwx ZD0qtcUL+9AiIh0RMZAAiIlxyG/hlJcYaVTsQqNWhWDoTAADnYAYXQr2NDNSYBTi6uul ziR29ZEMV9cevHon/k4ZfV+c7MvOPPbA3qMYLn1tMKZcpvlUNgLp/J/zUfaL/hubmPcQ kGvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=crqeAp2K1+iIaY+ipMifEjTO90dKoqprIKGZt87VauY=; b=gxZW/NroE9op8gePQ27wGArq8SJw2Ur9G68u2TPdM1hnEhowwx7jfHdGPAXOWkdcBk 1vsgJDlWoTsdwS6hgmwRhYyZB5/OEKcPSSEbtUZ8Xyap8fliIsKCHVQp/bYvm1AmfzOK SjiMYAAOpu22+gSp2u2xl7Qo5GO/g2PgZwVmlk1ddASbJBLUyR+io4indl1wZTJ27+xT JDVdXacg5rCFdGG0yO9b1iAMivaLr4yOD+s3zyMJqwtm1y0bIhMd2l4c6UCTYSOw84O7 ustF8Dzn9Mf3fzxz52W3zJpVZ9uTFP3qHjccm2XZicYA5qWbExJV1MHU9fOL8JuVfO9j h0Qw== X-Gm-Message-State: AN3rC/7qwWkpAdV1W+cfE9W2JGq7rDF6CRhryDvEFO6F26zpdDKeCAKc p8vGBmI4/mD38w== X-Received: by 10.28.228.4 with SMTP id b4mr6693252wmh.119.1492374245125; Sun, 16 Apr 2017 13:24:05 -0700 (PDT) Received: from ?IPv6:2003:c6:ebdc:4000:707e:f128:10e3:ba12? (p200300C6EBDC4000707EF12810E3BA12.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:707e:f128:10e3:ba12]) by smtp.googlemail.com with ESMTPSA id y63sm7699592wme.31.2017.04.16.13.24.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Apr 2017 13:24:04 -0700 (PDT) Subject: [PATCH 1/6] serial: meson: fix setting number of stop bits From: Heiner Kallweit To: Kevin Hilman , Greg Kroah-Hartman References: Message-ID: Date: Sun, 16 Apr 2017 22:06:40 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170416_132430_357859_C1B45E02 X-CRM114-Status: UNSURE ( 7.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, =?UTF-8?Q?Andreas_F=c3=a4rber?= , linux-serial@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The stop bit value as to be or'ed, so far this worked only just by chance because AML_UART_STOP_BIN_1SB is 0. Signed-off-by: Heiner Kallweit --- drivers/tty/serial/meson_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 60f16795..e2e25da1 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -355,7 +355,7 @@ static void meson_uart_set_termios(struct uart_port *port, if (cflags & CSTOPB) val |= AML_UART_STOP_BIN_2SB; else - val &= ~AML_UART_STOP_BIN_1SB; + val |= AML_UART_STOP_BIN_1SB; if (cflags & CRTSCTS) val &= ~AML_UART_TWO_WIRE_EN;