Message ID | 1494834539-17523-2-git-send-email-aisheng.dong@nxp.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.web.codeaurora.org (Postfix) with ESMTP id CFFBD60231 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 15 May 2017 07:49:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA3382896C for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 15 May 2017 07:49:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAE4C28970; Mon, 15 May 2017 07:49:46 +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=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID 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 1B6A42896C for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 15 May 2017 07:49:45 +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: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=nOpR3XEUkrTftN+/ygENF1Hctu574ymhWbB/W5ViRYM=; b=SjpbVDT4/mTQLZ waJRBX7Yvwz7vinagol0PSkMkpLavMP2uCsvoX8NuUakMPH1fmDp0fRW4RNB+R7dlQbZnNxn5u8G6 geoyv+uM1F/htr9+glCelv1BUYGh7lp58GcmYVWrvf3GhZ10jfVv4+oWp/cJpLmUnpMYTfBO+lgUx iEg/SCyeughi6a+YgevfSkurVNjJt+jApRWaSF6C2ksvMCg/KV754e5nCRb93+QT9cKUkGPBxgxGB SP46oWJjO2J19oRpIIiztxvJWnckPTvvlkbQkqZuFAstSt1Wkdevey1dmOPgAv8Hy0vEUDiz3Mubx FnAUWfVdg1IxjCqNs1uw==; 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 1dAAlE-00079o-B9; Mon, 15 May 2017 07:49:44 +0000 Received: from mail-sn1nam02on0084.outbound.protection.outlook.com ([104.47.36.84] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAAkx-0006on-CG for linux-arm-kernel@lists.infradead.org; Mon, 15 May 2017 07:49:29 +0000 Received: from BN6PR03CA0054.namprd03.prod.outlook.com (10.173.137.16) by BLUPR03MB167.namprd03.prod.outlook.com (10.255.212.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Mon, 15 May 2017 07:49:04 +0000 Received: from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::108) by BN6PR03CA0054.outlook.office365.com (2603:10b6:404:4c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16 via Frontend Transport; Mon, 15 May 2017 07:49:03 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Mon, 15 May 2017 07:49:03 +0000 Received: from b29396-OptiPlex-7040.ap.freescale.net (b29396-OptiPlex-7040.ap.freescale.net [10.192.242.182]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v4F7msjU003487; Mon, 15 May 2017 00:49:00 -0700 From: Dong Aisheng <aisheng.dong@nxp.com> To: <linux-serial@vger.kernel.org> Subject: [PATCH V2 1/6] tty: serial: lpuart: introduce lpuart_soc_data to represent SoC property Date: Mon, 15 May 2017 15:48:54 +0800 Message-ID: <1494834539-17523-2-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494834539-17523-1-git-send-email-aisheng.dong@nxp.com> References: <1494834539-17523-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131393081438074404; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39410400002)(39400400002)(39380400002)(39850400002)(39840400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(54534003)(9170700003)(104016004)(38730400002)(77096006)(110136004)(76176999)(5003940100001)(498600001)(50986999)(54906002)(86362001)(8656002)(2906002)(39060400002)(189998001)(4326008)(53936002)(7416002)(33646002)(105606002)(356003)(305945005)(5660300001)(50466002)(48376002)(6666003)(36756003)(106466001)(47776003)(50226002)(2950100002)(6916009)(85426001)(2351001)(8936002)(8676002)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB167; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD046; 1:rJmb+Xiy/f+Hj94EZfD4uSSh7P59H87xs+FLtA0/6DIZSh+aYN07mSdDKoJv0EupHJVD5MLCGs3ti0f4rVHV6Hfo869rHDYscX7VoAmze9UkX5kKm+T9vNtEv965RmLTiDZtwtcPko3zXPjs7cyz+RsPfnqkhuaOI4icgBImxZZb9Y/8VBcATsWGiM2zKAZScByU3rtmCrEIE0RVqHTZaxv6Smdo2erpuH1mO5aQDEpBJ4yc61CKKAx8VmdEnfgu0kNpGTTJCiEDTEFIa+vH5ggCZFJvscnIg/3eaguqfkpPWFwBj421TzbLH0BdVt5rUtk1cV3Z/I7knowwIxOc8YspxejEp20Fj0ArxGfb3e5xT6FlCDABiewFL2D/SXAEsDQWPbF9Rejh4yJ0UHEGn/znqhG4PpT8eBKXPORt5/ae2xc7pKAZIV3x21oaQ+7HSP5AvxlWmluO2RySQT9IbFK7Sl3Yh9klghfPi1T44ppC9SZYbkaPSEXYTLDNsO0l1v4CEop7P39rI3Cz423L34i7ZecARFvgcYj4elUh5F1RQpPeXsR/M7RFEf6awyasGtPxcA5Kz4gyWcJLDBBkBiDUCgSLfXHFxh8ofT7JuYAb9bkTp8fqb0NxPVNML5rSHY45Wccp/gwUUkp4zssRjriuHfeq0zK0KgJUfVOZgYdruESbYg/OzQISXiVFxhhiZWtbNGuFJLuFingMUYVlSjUyQRmDXtkgClpSwTwAeJE= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 11ba238f-9109-49ca-b36a-08d49b66db81 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BLUPR03MB167; X-Microsoft-Exchange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1JU2PyruptncYrjVQHDXbsIQeZ7VX6qWKk7NzuZ/vISUfOtrBSHNKgd08LCVJj3jE5pqF36KDhjkfZngChvQ7DIOKFME5RNaxd+Z7LjvKioPNA7bp8Wz27oggCWfPq8pYeuYcJrAXqT+U5ZUXFzXWlDmqFXA0ABVhWDwSs3ICLa1ASIM6FZ6m9GXR09NWXuZoukbOEGwW59srNB4+jJhHQ== X-Microsoft-Antispam-PRVS: <BLUPR03MB16799BEBE8FDF8CB3FA0EED80E10@BLUPR03MB167.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13023025)(13024025)(13018025)(13015025)(5005006)(8121501046)(13017025)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123561025)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(20161123559100)(20161123563025); SRVR:BLUPR03MB167; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB167; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB167; 4:FNqqZx62V7LzFOh37X6amHM/NCCGeDSYdUq+RsNUJA3?= =?us-ascii?Q?9h2qcGKeZKLjv9Z4+0lwJ0OO0DyHaxOl0Tqt8gBjsXdPvppb3Ss8DcccsCZ3?= =?us-ascii?Q?HMO5Y/0N83PIeQDYL8KvfJqsgISNeODoyClfPmseXwQxDrc18RZKAkfKsa8x?= =?us-ascii?Q?VYI5t9GxJ6qvNXpFWoQX284jZRG6q/RG5CRu2WDDiIE6HC1tvQZ7lax6qn+N?= =?us-ascii?Q?Z/u3y3VyT1dZdZBEUjEx0Ycih4J3FYcPw8tJcu4HpUv+T9V9ZRmIz8t+/6tv?= =?us-ascii?Q?FJR8jcNgjfqWtVW0bzqNKrq4j9ar+rjHCnY2GFRSA1Buc44GesnYSTLxnPL+?= =?us-ascii?Q?YqDVrDCNHLZKq9sFhaKM69g5kSryvAlW+XfrNx4WHSSqQDwM2kGZ8+b7jAH4?= =?us-ascii?Q?A7QsFtHTkgoS8aLyG618CQt+c/2PEjGpNjALtgZYMMp1KZ+j1/ompaLPdI99?= =?us-ascii?Q?Fsg/UzqMxO+ZUxYS/BA2cdqI10cwR9ia8uO5LBdA5SFVSOq6g/pk1t0ym/xa?= =?us-ascii?Q?Ur/XE4WrmJ1rnsaQzKyt+Q+oA2MA/9KxySdllVlGNCZgUqx0S9lc7kVzWxHP?= =?us-ascii?Q?Jn0/NRowHKjZSjQWQ13iKkdypaFVBDJKjDv05KzAVCt56qFc9RApR+jRllZv?= =?us-ascii?Q?mOQNiW70TyJFM9KtEQVN8DzRKoRDQex+O6uWEY5j3ikk+CYWy/10RVC35NZb?= =?us-ascii?Q?+alX6T0pS6jg+arKtcuRsyu4580lK3bxPq6lpvEaMo+kiLFnzt1ChWU+Ec3F?= =?us-ascii?Q?DY+S4jnjkt92W/cxMR2W766VTTfSiF2O+r4CAobc5FLcGiHloYnbRTAbLig0?= =?us-ascii?Q?2Kjp3My0MeealoTX4byck0SQmt6r3P1ABi7U+QDmu2d4sozf/rsiEEXW4l/S?= =?us-ascii?Q?EN1b+Nm3Uzp6bxaLOzfeaI2gHAJpXf6milLD2h8OjJxayEO5ygZ95kcc+nRL?= =?us-ascii?Q?zSBrByigTeNR9HTX1lAofnw6i9ZJNNC8TaT6bGg=3D=3D?= X-Forefront-PRVS: 0308EE423E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB167; 23:ilShhopc7UQ+ZMJqZm73Sld598h/6Vly5CWx4Mm5yD?= =?us-ascii?Q?P0oXeNJO7uiq77g8d3ttk2/t7MwGVqxqbxce6NhMYxIFw3lRPUhOT3hGW9y4?= =?us-ascii?Q?dQDbopJX8awgt8gQkgXr66iWAz4wClxneMpMMXMKTQ1sCTAkth+ELHXdzhhh?= =?us-ascii?Q?zl7G7EWb7qu5gfNE3cUTip0TJewq+9M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5FivlC; 24:lrf0xC8i2qcHfgxp9AoL4u9tAHYIJlXGhHzic3/of7AbFY18+jXSQmXp9WEn9rBMGfgS8YT7T1cerec+ip0oCaLVJlhWJjcFHVGaZM1OX+I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB167; 7:GgUDTTHKSjpjw8OH8sGuqzxYsh/bu4PNXi7FSKpab7s+QZVg4M1NaB7m4kx62pFK5vQOZOdS3hWO+cPDEUEm515BenkNVjjpuqVWNudp+HcpaT7wOJ5C3OhpDShholxJWtxcKnQsMzSIy+6bWGktHaD+ankDvOl/nRrgIbU0AmH+EFigkaTlW1mejSeP59p+6WgIi9riBfh0tbUDEMJ08MyjfPSg4NcDur3mOCuV4/mxz5x5rz3elfRn6/pY3H3aWs7M3X9SMc+3mXwWWE9IUpmQ039+EI9izp03RBzN2Gr1tDhQ2eYaB1W+CsfBnIzuDUT3nOcveo9T43QmJj8e/A== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2017 07:49:03.6046 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB167 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170515_004927_566684_88D88B73 X-CRM114-Status: GOOD ( 14.62 ) 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: Dong Aisheng <aisheng.dong@nxp.com>, fugang.duan@nxp.com, dongas86@gmail.com, gregkh@linuxfoundation.org, yangbo.lu@nxp.com, linux-kernel@vger.kernel.org, stefan@agner.ch, Mingkai.Hu@nxp.com, jslaby@suse.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 |
On Mon, May 15, 2017 at 10:48 AM, Dong Aisheng <aisheng.dong@nxp.com> wrote: > This is used to dynamically check the SoC specific lpuart properies. > Currently only the checking of 32 bit register width is added which > functions the same as before. More will be added later for supporting > new chips. For the rest it might be okay, but don't we have specific properties for register width and offset for UART? I think I saw something like that in other drivers.
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 15df1ba7..7204103 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -258,13 +258,21 @@ struct lpuart_port { wait_queue_head_t dma_wait; }; +struct lpuart_soc_data { + bool is_32; +}; + +static const struct lpuart_soc_data vf_data = { + .is_32 = false, +}; + +static const struct lpuart_soc_data ls_data = { + .is_32 = true, +}; + static const struct of_device_id lpuart_dt_ids[] = { - { - .compatible = "fsl,vf610-lpuart", - }, - { - .compatible = "fsl,ls1021a-lpuart", - }, + { .compatible = "fsl,vf610-lpuart", .data = &vf_data, }, + { .compatible = "fsl,ls1021a-lpuart", .data = &ls_data, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, lpuart_dt_ids); @@ -1971,6 +1979,9 @@ static struct uart_driver lpuart_reg = { static int lpuart_probe(struct platform_device *pdev) { + const struct of_device_id *of_id = of_match_device(lpuart_dt_ids, + &pdev->dev); + const struct lpuart_soc_data *sdata = of_id->data; struct device_node *np = pdev->dev.of_node; struct lpuart_port *sport; struct resource *res; @@ -1988,7 +1999,7 @@ static int lpuart_probe(struct platform_device *pdev) return ret; } sport->port.line = ret; - sport->lpuart32 = of_device_is_compatible(np, "fsl,ls1021a-lpuart"); + sport->lpuart32 = sdata->is_32; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); sport->port.membase = devm_ioremap_resource(&pdev->dev, res);