Message ID | 20190220153119.4423-2-martin.kepplinger@ginzinger.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=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-2.web.codeaurora.org (Postfix) with ESMTP id 0DAC214E1 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Feb 2019 15:32:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E69432E706 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Feb 2019 15:32:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA2222EB99; Wed, 20 Feb 2019 15:32:44 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 92E742E706 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Feb 2019 15:32:44 +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:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FimV74s0MqOgYzLFpJiYE9/5JRCkM07egXUrYAxHPmE=; b=HrvYSudbZ7lazIaUSWqjurNgm pzF8i4UBhzbvqTyngYRJOYt6hQu+rtmF+9+DhDWDo0jph5qMeImm3lL3gj9OdnWeuEqqsMjYh+K+p 6NtrVO5XC9jWWx3spMEhkLexIGbyWLWpCpmaj9Mzhq3Pnf6dwIL4is114RxAW79pM0IDCFSKwXOQ7 FDzZ6Q3WgcHDPElyrYg6GcxYXWWvnpMaLnYmLFszWDHudp4LHGAvDYGfho/5qHw8f20pHcVGtR/0B xfsa7l/YlKHrLJGaiAj5bT4zcVIJrGvtYchuc2Dq4NjejHtzkULSW5StuNINI1lmtr83qFgw1sZeN Qm+GFucOA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwTrV-0005ay-T9; Wed, 20 Feb 2019 15:32:41 +0000 Received: from mx-ginzinger.sigmacloud.services ([185.154.235.147]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwTrS-0005aM-So for linux-arm-kernel@lists.infradead.org; Wed, 20 Feb 2019 15:32:40 +0000 Received: from [31.193.165.228] (port=33014 helo=mx-ginzinger.sigmacloud.services) by mx-ginzinger.sigmacloud.services with esmtps (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from <Martin.Kepplinger@ginzinger.com>) id 1gwTqK-0003nR-1X; Wed, 20 Feb 2019 16:31:28 +0100 Received: from martin-laptop.buero.ginzinger.com (10.10.1.120) by exc1.buero.ginzinger.com (10.1.1.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Wed, 20 Feb 2019 16:31:27 +0100 X-CTCH-RefID: str=0001.0A0B0211.5C6D72D0.004F, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 From: Martin Kepplinger <martin.kepplinger@ginzinger.com> To: <gregkh@linuxfoundation.org>, <robh+dt@kernel.org>, <mark.rutland@arm.com>, <jslaby@suse.com>, <corbet@lwn.net>, <richard.genoud@gmail.com>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <ludovic.desroches@microchip.com>, <mcoquelin.stm32@gmail.com>, <alexandre.torgue@st.com>, <linux-serial@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-stm32@st-md-mailman.stormreply.com> Subject: [PATCH 7/9] serial: atmel_serial: set SER_RS485_DELAY_IN_USEC accordingly Date: Wed, 20 Feb 2019 16:31:17 +0100 Message-ID: <20190220153119.4423-2-martin.kepplinger@ginzinger.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190220153119.4423-1-martin.kepplinger@ginzinger.com> References: <20190220153119.4423-1-martin.kepplinger@ginzinger.com> X-Originating-IP: [10.10.1.120] X-ClientProxiedBy: exc1.buero.ginzinger.com (10.1.1.204) To exc1.buero.ginzinger.com (10.1.1.204) X-EXCLAIMER-MD-ORIGINAL-SUBJECT: [NOSIG][NODISC][PATCH 7/9] serial: atmel_serial: set SER_RS485_DELAY_IN_USEC accordingly X-EXCLAIMER-MD-CONFIG: 9dd172f7-de2e-4231-b886-ec11f46e03b3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190220_073239_083754_FFCC0BE4 X-CRM114-Status: GOOD ( 12.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org Content-Type: multipart/mixed; boundary="===============9014216740190649564==" Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[1/9] serial: uapi: add SER_RS485_DELAY_IN_USEC flag to struct serial_rs485
|
expand
|
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 05147fe24343..36ab1c131d36 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -346,6 +346,9 @@ static int atmel_config_rs485(struct uart_port *port, port->rs485 = *rs485conf; + /* delays are in milliseconds */ + rs485conf->flags &= ~SER_RS485_DELAY_IN_USEC; + if (rs485conf->flags & SER_RS485_ENABLED) { dev_dbg(port->dev, "Setting UART to RS485\n"); atmel_port->tx_done_mask = ATMEL_US_TXEMPTY;
Unset the SER_RS485_DELAY_IN_USEC flag during rs485 config for userspace to get the correct setting. Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com> --- drivers/tty/serial/atmel_serial.c | 3 +++ 1 file changed, 3 insertions(+)