From patchwork Sun Nov 5 04:29:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Rohloff X-Patchwork-Id: 10041855 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 9EA50601EB for ; Sun, 5 Nov 2017 04:30:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FE312967B for ; Sun, 5 Nov 2017 04:30:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 836CD2967E; Sun, 5 Nov 2017 04:30: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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 1001B2967B for ; Sun, 5 Nov 2017 04:30:06 +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-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:MIME-Version:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1j4IqP3b8TPeSjkn+zpnTyKxGWj0MQ8zzv3jLgRYe+c=; b=oWPOInF1SV5el5SFAlvnl9w5Qr ZxGWPuyrQI68EUBC8/tIx6Z/qexBDyEuWSYaZUOsbSXUXVLPAmPnRd3NPSE5g5+hnAjJuJfD2oLLY EcX0XCARKgNmsNgvLUY2K9zuapty4fAl7Ec0l870m/JjdDAFcKIWGtxvDdNU5SaZ2E5fel8RoUefU LsZda/9mT2YE+kLmVQs4TgaNAfT0wHGDkQyT8zEWYLeX0P1apFQRhQi6t1nn+AJYkLbv02c4yuejg ckUVkULkvqfV4Sb+5NSkxvo3k/r+OUgQsQ9tfiLDY9Iiqun6yqmkrTv/+Qbt7yYUwG6VGnjpcJcZR 4TuwKByA==; 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 1eBCZN-00024X-P0; Sun, 05 Nov 2017 04:30:01 +0000 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eBCZH-0001xf-TW; Sun, 05 Nov 2017 04:29:58 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3yV2ld2NVGz1qsVf; Sun, 5 Nov 2017 05:29:33 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3yV2ld1XZBz1r0xj; Sun, 5 Nov 2017 05:29:33 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 5FHRK4M0lh4K; Sun, 5 Nov 2017 05:29:32 +0100 (CET) X-Auth-Info: JfYT3QbRHU5KSwHz1pxQrPF/apKo3sp6sWnffZ5dBP3YliaoY5Tauy7Gr/ROoO8W Received: from localhost (aftr-88-217-181-4.dynamic.mnet-online.de [88.217.181.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 5 Nov 2017 05:29:32 +0100 (CET) From: Thomas Rohloff To: Subject: [PATCH v4] tty: serial: meson: allow baud-rates lower than 9600 Date: Sun, 05 Nov 2017 05:29:30 +0100 MIME-Version: 1.0 Message-ID: User-Agent: Trojita/0.7; Qt/5.7.1; xcb; Linux; NAME=Gentoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171104_212956_235243_784B0BBA X-CRM114-Status: UNSURE ( 7.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, Kevin Hilman , Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Devices like DCF77 receivers need the baud-rate to be as low as 50. I have tested this on a Meson GXL device with uart_A. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Carlo Caione Cc: Kevin Hilman Cc: linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Thomas Rohloff Reviewed-by: Neil Armstrong --- drivers/tty/serial/meson_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) port->read_status_mask = AML_UART_TX_FIFO_WERR; diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 07c0f98be3ac..e281ce5d101d 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -362,7 +362,7 @@ static void meson_uart_set_termios(struct uart_port *port, writel(val, port->membase + AML_UART_CONTROL); - baud = uart_get_baud_rate(port, termios, old, 9600, 4000000); + baud = uart_get_baud_rate(port, termios, old, 50, 4000000); meson_uart_change_speed(port, baud);