Message ID | 20170718105948.21986-9-u.kleine-koenig@pengutronix.de |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oj11Ghtp"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="mOfQQGUN"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xBcyl2ZPgz9t2Q for <incoming-imx@patchwork.ozlabs.org>; Tue, 18 Jul 2017 21:15:27 +1000 (AEST) 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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ihPqt68Xg5wwMVUdfxkgpxrq3dWWR3554df6ZLL+TsA=; b=oj11GhtpaQOS0K Kmh04M8HNjmfVMcFEo+AK1SElhbQlKCRPu7q53qmBtYWKNuQMB2UF3m8brk14My+N6u0Fo1VNzENq 4vnmMAgWngLY2nFmI7UMOUyG8gVw8vSlzb4S7unWX9cSB8B+58V+66MvoNZr5QQKV9E4jD3GfiQM/ BoXW1bjBE7xz/wXI0QywR9I9Nh9DUkT03P/FlA4EGIyENedEiSv24TekfI7Rj9rzDFpHPmmZh63f5 9jJ+ZxXK8zCmNKqeEpg7A58/nO8Iov3gqpTegqVtRhokpThG1Z2oSAQNhieCeOStX8PywpUCU5+H7 gbi0g1jESVkggYVYCVgw==; 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 1dXQTM-0000tO-B9; Tue, 18 Jul 2017 11:15:24 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXQTJ-0000VO-RO for linux-arm-kernel@bombadil.infradead.org; Tue, 18 Jul 2017 11:15:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=T0xowtiCqYInqFgHwDbgVlqdQbTpc6sJns3dmwUa3U8=; b=mOfQQGUNHhZNXnMAf2er/wX7Kg mtjgztcoY3DZZtq8YqjBxtdav4G+ZTOfaVNWxpvPk0dduXnbeyHZX3lXVvKoqXTJ8cWaBrUm9QMl8 BytAatremQ0ScE6qoAB9V2H62+ErLC+xx4L83/eB70zhUiHTIfZ8vUKSDH0qZVVBn0GH0bu5SrVJi ozt71HX8HsIStT4wxcTAWpgkbL2YVUkjr6alhKm8X3SXO3qn81gNPjWtw+rTcHh5e9KOF45VM93q0 2ADUoLwT9UboqRKmIlkK9ztXNbEck3bykivod6MquHM47VhY++E7pewYi132BzuwzJYJ3WIlhZYt/ qJ2IR4gA==; Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXQEu-0002eG-Dt for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2017 11:00:30 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ukl@pengutronix.de>) id 1dXQEO-0007eT-20; Tue, 18 Jul 2017 12:59:56 +0200 Received: from ukl by dude.hi.pengutronix.de with local (Exim 4.89) (envelope-from <ukl@pengutronix.de>) id 1dXQEN-00075Q-Mj; Tue, 18 Jul 2017 12:59:55 +0200 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de> To: linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 8/9] serial: imx: Use common rs485 device tree parsing function Date: Tue, 18 Jul 2017 12:59:47 +0200 Message-Id: <20170718105948.21986-9-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170718105948.21986-1-u.kleine-koenig@pengutronix.de> References: <20170718105948.21986-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170718_120028_531752_737B19EE X-CRM114-Status: GOOD ( 12.60 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list 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: Fabio Estevam <fabio.estevam@nxp.com>, devicetree@vger.kernel.org, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, kernel@pengutronix.de Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org |
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index bb5cd8ff7d86..88957f31d8ed 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -2059,6 +2059,8 @@ static int serial_imx_probe_dt(struct imx_port *sport, if (of_get_property(np, "rts-gpios", NULL)) sport->have_rtsgpio = 1; + of_get_rs485_mode(np, &sport->port.rs485); + return 0; } #else