Message ID | 1491445283-13053-2-git-send-email-andy.tang@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 29DB2602B5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 6 Apr 2017 02:36:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B31227317 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 6 Apr 2017 02:36:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E49B28249; Thu, 6 Apr 2017 02:36:55 +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 97A5C27317 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 6 Apr 2017 02:36:54 +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=yRmGoc6Z7uVZWVFaLPpnvzhLzkB1whepjMBrGxtWYZo=; b=ibb1uC3gsQRQVv NFrdyVbUKKrVFgxw1Dl+y1flLvlkKcDEIGEg+8wRnD1j46qhv94Ax1hGlS+uer1On2gwTdffnbpe3 aatnEOcY3WgsDDHAO607ncJNMId4FP23FR1yfg0AbU3HAGBUGSVHLZDxyLiMVtvu1NfykdkL0zkvz rNtgs+2jaafNgH0DdZO4l3Sn/nbyLgwvO6jZH6usBwgIA1utjzX/DVW6BTNNrR8iV2Bn6HMLFkmlU Pd8CSuGh90gNkmntWVjmPUCMiHMS6CBh5EEPRpOC3Ow2pchTTAEMJ28sDl/v+QLR2NRHYd0qw4PK/ SxlMEgE45Se9wGUhY+KA==; 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 1cvxI0-0003p3-79; Thu, 06 Apr 2017 02:36:48 +0000 Received: from mail-bl2nam02on0066.outbound.protection.outlook.com ([104.47.38.66] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cvxHs-0003XR-2p for linux-arm-kernel@lists.infradead.org; Thu, 06 Apr 2017 02:36:43 +0000 Received: from BY2PR03CA078.namprd03.prod.outlook.com (10.141.249.51) by BLUPR03MB280.namprd03.prod.outlook.com (10.255.213.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Thu, 6 Apr 2017 02:36:17 +0000 Received: from BN1BFFO11FD032.protection.gbl (2a01:111:f400:7c10::1:167) by BY2PR03CA078.outlook.office365.com (2a01:111:e400:2c5d::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Thu, 6 Apr 2017 02:36:16 +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 BN1BFFO11FD032.mail.protection.outlook.com (10.58.144.95) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Thu, 6 Apr 2017 02:36:15 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v362ZxPv007978; Wed, 5 Apr 2017 19:36:13 -0700 From: Yuantian Tang <andy.tang@nxp.com> To: <mturquette@baylibre.com>, <sboyd@codeaurora.org> Subject: [PATCH 2/2] clk: qoriq: add pll clock to clock lookup table Date: Thu, 6 Apr 2017 10:21:23 +0800 Message-ID: <1491445283-13053-2-git-send-email-andy.tang@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1491445283-13053-1-git-send-email-andy.tang@nxp.com> References: <1491445283-13053-1-git-send-email-andy.tang@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131359197763024799; (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)(39410400002)(39400400002)(39860400002)(39380400002)(39850400002)(39840400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(54906002)(53936002)(38730400002)(50986999)(36756003)(6666003)(8656002)(2950100002)(77096006)(105606002)(4326008)(8676002)(106466001)(5660300001)(76176999)(33646002)(189998001)(5003940100001)(104016004)(50226002)(8936002)(81166006)(47776003)(305945005)(356003)(48376002)(50466002)(85426001)(86362001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB280; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD032; 1:J0Ba2kz/L1pgUSYqt6NUwbFzfaHrHH/mkNI+A4rLN8C/4Qzpk1GFil31dsbvcs6D6kpwzmVA/LQPojIIqpBLJKi9Dh9pr6SRTMxDNHvrn2JieIPjeRmPSkdwUYBpA4VqkByaKzlDGMaeynBlvfpmp4e0RVCtqa0moR9+4OSF5KHFsRkDJevCZI6hNA2yPeFcJAY0PT3/C6iCq/ws1h8m7CUnxGysCckkXcc0y+9D40EcqUxPgxrPchwiiwtrs1GoR6iMcvcoYVA1tJbPiPmueXDB9PuNBQCD7XBMPmQdMYXOU2h/9RsSJdFizpjRMPqQ3OGKa5PBjcPIfNrpWZc1Tgo1ikSa0J+4XG3JYdW2xSKQwiJS5W+Evwn7A2PctC/5J/dQ+klAI2l3NX+MOzabKyFUOlHBwmjA/f2r2ZojyjjKm8sDHZI+1reCDEz0UIYq7i8bT3wDyL9o9lkaqYENGEZLj1chI0px1WISxoMsnAE+9Yl9fl2pHZ+9BdLAMf+IOEOrEbDVnl3GoKVcMtvoONjSjjywGW+XUSniitvdV8dDEjB7e7dDHk46uYfKLE6tm0N7OX6XdKGA4U5B3b78tW4JkW0HRTl1Qy4tUG7Fv/KniH5jIJCMvWb0icLkF+hOurgpvnz87Mwq5TT2fD+SZnsO8N45zPuCIiCOgmIVaKU8QWETgf/dm6cHK/fUaL5X+TUYlevK2CxguFJWSvgyUBxxMflVBFco7+v0pkZAcGE= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6e57c075-806a-4f25-2c97-08d47c95b309 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BLUPR03MB280; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB280; 3:bdSg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z/S+gb+T+nBE2rvoP7FMIniok8fL2BKcNNQJjXCIpKg/iZ16hlpGDboH7Prm2Ix6sXyzIi0wYxxDvrPvpj0Zclusb87kqs5FAVGmBSzxW4pqMN4pPjkPInfxRF6BcBGnH9/o61KLtw== X-Microsoft-Antispam-PRVS: <BLUPR03MB280D3658F423AD4049B2F7FF30D0@BLUPR03MB280.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)(13015025)(8121501046)(5005006)(13017025)(13023025)(13024025)(13018025)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123556025)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259075)(20161123565025); SRVR:BLUPR03MB280; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB280; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB280; 4:ftSV/sYMNB4on+OgIgStIusvHz7oXD/Db7rjCp6dN38vMRN72y1JOq0BrfouDTQpbdPu+0wQ+lqd2OeETCEpNj2sX49UbgfjBPyBuU6u4Op8DsL3dRB4VcFIeayQGzRSN9LF4E3kekWZRzoARAVd0ypx8bFtt3gUhCH6f1LJzfAXMd/wtLIOCqYXKb2Y+DRojhVnjoTWxNqr5Cac0OPoYnwGKaJjGE+PmRfSitscs4k47uzhkCaeB/1sf/RLYhSWdQEssHuvR1vP45G9EnU5E31psMM+8oqNI4eb47b+g/8S8AUmVEPoiZ5HI+lh58FdCeUUFzo8lNxG5QW1dJy+yoAfv5+5qgL6M9ezdsik0t/TQcYSwZUHaPkLa5cK+0zDnV2v3fseDlb2PCsdNRl9hF9UWOTxVfHs4PBO8VRsfko3qFTo7Pd97UNDcKWZX/h3qnbDoy6JkxZg4wZnBa+tQfDdJTc0m8vNk0uRdGmh0LBQHXK5xbVuFIv/czA2E3vvqP/JAzzHYd/jsqlITCuX0CH+CqZ5Y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bqb3wpVZIJlbtPbkNavRxtGMgpizeKUelch5YX/8nXOOI/OLSpEeOvKFpfMXOPVqhE2bwj4vLOSdlwuKs30ePhmiFo9Lf9ooIdDCigSCmqQ6lt2Q1ibK+XR0uXG+HR4Mi4jsTcC/LOIARMYZfP6z3ew8IAaWwbMR/hH9DFGPWeIBPJclJUeLKfcfbu4tMAoVnXPyiEptCOWJsoB+e6xUsbkUOOg==; 5:ITy597+XLa85lNBdtIEHz1js0GmaKgYQ0h7NyZzxXfrpHWpsWqhfZbDhihmzdw7lFBevtmNnRa6cFq4mcVctgP5wlAJcUjcckl+qbutXKHJc21PGeGtwKRDAL7Rql34xMlGMR2TqOEQkTsMFWQmH7LI16jSKjq4LNCWP4OYYT7aXKKQajM13c3ewUar749nd; 24:YA71GAmRVAk/LWk+ER1D2GyAdG9aUDXcfY3tHtpGkAg9fmLz2o+gpH22Lg1p2ZS8I4xZ+x0krKlpvN3tPXKuci2EaJ0QZXIkZsh/Mh0SspM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB280; 7:/7gQbAhmwSBwfoTcR9LKY0belF/2EKmY6mqQ/F0NvNKFBZea7ekQJDOxX0MniJTyBqlU1xlmOcEOwRxD3MCoW0cKTSNvbZJyDVlzAquCOeNOuqQy+2a6tQFU7rN+S7Xb0NtstX1f11AtsArar7xmO6H3BlXZwf8tZ5GdMh4pgv9GLhdG++IMBlZ5RaLsRU9v2vRywmrKqA3yHTsTVQYTcPA4FLlthPquhtNSlIWQXJFqiDwCK8n14sDnumFWaTranawxrjf8/c1UQo/VzfDzVlC/Yt3fbwq5rLLR/RaaMeijTXeT4v7r4VdOULAL92t2QPkDckSLDVkIFYzW6a8p5w== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 02:36:15.9904 (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: BLUPR03MB280 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170405_193640_591606_D6B02E0D X-CRM114-Status: GOOD ( 13.46 ) 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: Yuantian Tang <andy.tang@nxp.com>, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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 04/06, Yuantian Tang wrote: > Register each PLL and its division clocks to clock > lookup table to facilitate the clock look up for > clock consumer. > > Signed-off-by: Tang Yuantian <andy.tang@nxp.com> > --- Applied to clk-next
diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index 62cf32f..1bb691a 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -12,6 +12,7 @@ #include <linux/clk.h> #include <linux/clk-provider.h> +#include <linux/clkdev.h> #include <linux/fsl/guts.h> #include <linux/io.h> #include <linux/kernel.h> @@ -1124,6 +1125,7 @@ static void __init create_one_pll(struct clockgen *cg, int idx) for (i = 0; i < ARRAY_SIZE(pll->div); i++) { struct clk *clk; + int ret; snprintf(pll->div[i].name, sizeof(pll->div[i].name), "cg-pll%d-div%d", idx, i + 1); @@ -1137,6 +1139,11 @@ static void __init create_one_pll(struct clockgen *cg, int idx) } pll->div[i].clk = clk; + ret = clk_register_clkdev(clk, pll->div[i].name, NULL); + if (ret != 0) + pr_err("%s: %s: register to lookup table failed %ld\n", + __func__, pll->div[i].name, PTR_ERR(clk)); + } }
Register each PLL and its division clocks to clock lookup table to facilitate the clock look up for clock consumer. Signed-off-by: Tang Yuantian <andy.tang@nxp.com> --- drivers/clk/clk-qoriq.c | 7 +++++++ 1 file changed, 7 insertions(+)