Message ID | 1f1dbe00-d5f2-b473-a264-4d2789349ca6@gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> 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 98D84602DC for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 19 Apr 2017 20:19:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B2FA2842E for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 19 Apr 2017 20:19:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FCCD28449; Wed, 19 Apr 2017 20:19:06 +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 202022842E for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 19 Apr 2017 20:19:05 +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:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LHMUTBq5egG0GM3KyQPMvPP8mphG9Hoh5cr7ieU42VM=; b=LgmhzEB6ydrjSl 9m3GRS2ov1L9lhCi3c4hFv28ihJ0e7oGBB+FXvoBu/kKoLKrOuovDTaSdyk3V5nysNL/S7JrVFMqr CDHX733B/qgwAh9JBqoLNlXA/s6JAyw/CenyhJN9UO5bQ1OOKgw8dr6dgujo2xCetyKxgcq11XM6f /DaLUAaVi3Ou9peO0WscrDzZxDLq95KO8/GhzzJlkmpQs9rr+k3ktq6kI8PqR4+wqjBPUKrhWyGLs dKiWWyrSlbK4qWNZq/jkqzLk7/XyZZ/zP3F9AFz10BYwarpqXjpy2netPLQnj0qjS3tBzoBj6mdEz LHDpIEKwp2PFAlBtsUOw==; 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 1d0w3x-0005Pi-FF; Wed, 19 Apr 2017 20:18:53 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0w3r-0005Ao-Dr for linux-amlogic@lists.infradead.org; Wed, 19 Apr 2017 20:18:50 +0000 Received: by mail-wm0-x244.google.com with SMTP id o81so6946212wmb.0 for <linux-amlogic@lists.infradead.org>; Wed, 19 Apr 2017 13:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=D+mGstlnlQnxnvqqo+TUrEafgv57PoOB1f/X3v4c9zo=; b=qXRbDf/1hNRmYPmcPqdtDQLuHdJSKV7xh18mcpW054vwVpYaHQ5J/1kIQY6E0oQyhe f+kQ4Iliq5M5IzFWU9bxXGGCOssb9WyVVCIMWaWLCp3H5DRE/618kUeY2ITYrqXpoHPP wMjNHGuipwPCWBqG/0MPkyueECX0jxxRJySTiLzlZBsjp7He70V3AerUcWvz+63LMd5v DNumWnYPYTK//7xlNAwxj8dae3lnc6pXColMKodpUcAMmvhJskTTTvLBRwP6GYJnUslF zOzUGInL3kAnL0xlzLZqre69maRzJBtXt8tV+kgEf8JHkykYVW3epBn6ce+Kb2KPGLgx OSqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=D+mGstlnlQnxnvqqo+TUrEafgv57PoOB1f/X3v4c9zo=; b=NeouyCkZxgo3rASB5503F765YDixtEKbCkHqXV/tHjz6om2aucAi1sr2AWIHz69oYB xxFSqcMiLlMAm9+UswzV7BF6Iwnbll2y45Yybn9XFiU8DcaCW6sKuGpbdjlh/NRYY6wE CKEy1GffzZrcae2r0H4qsNTCtHN7EY9v0xTsrZUanjs+K8cL8MJbCIzoq99d1iMMfgBh yJjWPEDWqYJFGXNYYmWhjDOuUAlnJaTw9EL1hCcimPiQKhqxohiL8KLqmhb8CMUiKf0L 4bqAfUgYz9j+C8ZqshENQezVU7rR0mWkA/ed8ZN9i58K2dz+2LEoAeSrWqfWfoP9JYwT Cjuw== X-Gm-Message-State: AN3rC/5WkQ4biEF84mxkaP8bRNDuA8XMRmOYCWTXsyMCrKIJJWcgoLR6 q2xueidFe8yku1el X-Received: by 10.28.223.84 with SMTP id w81mr19540689wmg.32.1492633106004; Wed, 19 Apr 2017 13:18:26 -0700 (PDT) Received: from ?IPv6:2003:c6:ebdc:4000:4076:286e:41cb:1a56? (p200300C6EBDC40004076286E41CB1A56.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:4076:286e:41cb:1a56]) by smtp.googlemail.com with ESMTPSA id k26sm4661846wre.9.2017.04.19.13.18.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 13:18:25 -0700 (PDT) From: Heiner Kallweit <hkallweit1@gmail.com> Subject: [PATCH v2 1/6] serial: meson: fix setting number of stop bits To: Kevin Hilman <khilman@baylibre.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> References: <4abafe6e-3c7c-049f-d450-ab27e2c7acfd@gmail.com> Message-ID: <1f1dbe00-d5f2-b473-a264-4d2789349ca6@gmail.com> Date: Wed, 19 Apr 2017 22:17:24 +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: <4abafe6e-3c7c-049f-d450-ab27e2c7acfd@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170419_131848_257525_A83EB456 X-CRM114-Status: UNSURE ( 7.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: linux-amlogic@lists.infradead.org, =?UTF-8?Q?Andreas_F=c3=a4rber?= <afaerber@suse.de>, linux-serial@vger.kernel.org, Neil Armstrong <narmstrong@baylibre.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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;
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 <hkallweit1@gmail.com> --- v2: - no changes --- drivers/tty/serial/meson_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)