From patchwork Sat Sep 6 17:21:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Charkov X-Patchwork-Id: 4857921 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4D2CE9F314 for ; Sat, 6 Sep 2014 17:31:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 503A120131 for ; Sat, 6 Sep 2014 17:31:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8AE3420122 for ; Sat, 6 Sep 2014 17:31:05 +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 1XQJnL-0005LI-Jz; Sat, 06 Sep 2014 17:29:03 +0000 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XQJnJ-0005Km-4Z for linux-arm-kernel@lists.infradead.org; Sat, 06 Sep 2014 17:29:01 +0000 Received: by mail-lb0-f179.google.com with SMTP id p9so2352335lbv.24 for ; Sat, 06 Sep 2014 10:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6AsmBed39jSSI/iP3edstBihPPxURCeo4o37j4XKOLw=; b=ak/OT77mu/+4CfYlo38izuHYJwujlqbuybPxdtcG7cGYqyvAwYkM5pu8FIUsd9VTza PwRoKdoJDF5gqj9eOfv1j70x0fK+HxidztZlQNgPyiN7zeZo9nuWjgqy2Y9xGUR7KZms rp+hcpLH7q28zml6by+YVgk3J6U0zwnbxdIBDFw6HqktO0FWQqqJvZZbhJD43oXCGLES HHsphyWj07tPQ8ZhQUO3MLzqP1/yeFB3PdhPx8THWRgsBhvmU5nRDHxzkE5eNeL8eqT1 r/YH+hQZYZkUx+khg01nGKvaG3wOhJTUhKhyguyf0TVe0scXPWpxiLJJWq0hClwHElgd WH2w== X-Received: by 10.152.37.5 with SMTP id u5mr3979094laj.65.1410024137630; Sat, 06 Sep 2014 10:22:17 -0700 (PDT) Received: from localhost.localdomain ([83.149.9.109]) by mx.google.com with ESMTPSA id vr9sm1883449lbb.36.2014.09.06.10.22.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Sep 2014 10:22:16 -0700 (PDT) From: Alexey Charkov To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Tony Prisk , Greg Kroah-Hartman , Jiri Slaby , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org Subject: [PATCH 2/4] tty: vt8500_serial: add missing support for RTS setting Date: Sat, 6 Sep 2014 21:21:13 +0400 Message-Id: <1410024075-1354-3-git-send-email-alchark@gmail.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1410024075-1354-1-git-send-email-alchark@gmail.com> References: <1410024075-1354-1-git-send-email-alchark@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140906_102901_408049_AB4251DB X-CRM114-Status: GOOD ( 10.07 ) X-Spam-Score: 0.5 (/) Cc: Alexey Charkov X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-2.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Signed-off-by: Alexey Charkov --- drivers/tty/serial/vt8500_serial.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/tty/serial/vt8500_serial.c b/drivers/tty/serial/vt8500_serial.c index f225719..47e74f9 100644 --- a/drivers/tty/serial/vt8500_serial.c +++ b/drivers/tty/serial/vt8500_serial.c @@ -291,6 +291,14 @@ static unsigned int vt8500_get_mctrl(struct uart_port *port) static void vt8500_set_mctrl(struct uart_port *port, unsigned int mctrl) { + unsigned int lcr = vt8500_read(port, VT8500_URLCR); + + if (mctrl & TIOCM_RTS) + lcr |= VT8500_RTS; + else + lcr &= ~VT8500_RTS; + + vt8500_write(port, lcr, VT8500_URLCR); } static void vt8500_break_ctl(struct uart_port *port, int break_ctl)