From patchwork Wed Jul 19 09:54:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 9851029 Return-Path: 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 CE9BD60392 for ; Wed, 19 Jul 2017 09:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B17CE28632 for ; Wed, 19 Jul 2017 09:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A63752863C; Wed, 19 Jul 2017 09:55:33 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2688B28632 for ; Wed, 19 Jul 2017 09:55:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753499AbdGSJzT (ORCPT ); Wed, 19 Jul 2017 05:55:19 -0400 Received: from mail-by2nam01on0044.outbound.protection.outlook.com ([104.47.34.44]:28992 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754337AbdGSJzM (ORCPT ); Wed, 19 Jul 2017 05:55:12 -0400 Received: from BLUPR0301CA0014.namprd03.prod.outlook.com (10.162.113.152) by BLUPR0301MB2114.namprd03.prod.outlook.com (10.164.22.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Wed, 19 Jul 2017 09:55:10 +0000 Received: from BY2FFO11FD033.protection.gbl (2a01:111:f400:7c0c::111) by BLUPR0301CA0014.outlook.office365.com (2a01:111:e400:5259::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10 via Frontend Transport; Wed, 19 Jul 2017 09:55:10 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD033.mail.protection.outlook.com (10.1.14.218) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1240.9 via Frontend Transport; Wed, 19 Jul 2017 09:55:10 +0000 Received: from fsr-ub1664-115.ea.freescale.net (fsr-ub1664-115.ea.freescale.net [10.171.73.213]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v6J9t65k013481; Wed, 19 Jul 2017 02:55:06 -0700 From: Leonard Crestez To: Viresh Kumar , "Rafael J. Wysocki" , Shawn Guo CC: Fabio Estevam , Lucas Stach , , Octavian Purdila , Anson Huang , Bai Ping , Dong Aisheng , , , Subject: [PATCH] cpufreq: imx6q: Fix imx6sx low frequency support Date: Wed, 19 Jul 2017 12:54:54 +0300 Message-ID: <8e6f731906fe5f8dce6f23b1e8ad084c8041f49e.1500457396.git.leonard.crestez@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131449317106380749; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39850400002)(39410400002)(39400400002)(39860400002)(39840400002)(39380400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(106466001)(104016004)(50986999)(105606002)(305945005)(36756003)(5003940100001)(69596002)(38730400002)(356003)(189998001)(54906002)(626005)(498600001)(33646002)(53936002)(47776003)(86362001)(8936002)(50226002)(4326008)(8676002)(5660300001)(6666003)(85426001)(81166006)(118296001)(50466002)(8656003)(2906002)(77096006)(48376002)(7416002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB2114; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD033; 1:yxOXl5UUmtkstyCb+9a3UKgri7+nUxPZG5RGb2Nn8PPTczlP4XjyQ7174HxFiaENBMZNdQLgoqx/l0+cTacGslLx9Rkdtte0V8wQmv9r6zNZtb1g74RChvqWSWhoN9I//CT1D5BZa5BymlLu3mhTI4kvdwv9gOcRyN204NYYcjgFS5qWmax088NlczHR727Kca5siz6bP3bz6qLNs9UFjfBZRDjKzl9O/dfir6fdfZdDfK+XrZ1SIFuhb+XwZKdgpQWCgEE0HIulE3AttCL/X8AEPSM5Ve+L9UAmDO4CSqDhl/jWR3NFwu9KcYTu8LPHqRe4fb8NlA7iGeln5F1nuPiHvkpcVxr1LKRGmdmWGuBEgdRIDifSPR1LgdZbPHdArNQ3zFlMedckR44YN5kXBLGKeaXBv5sYzgxSDqhdktKrgEySRyiTDg1zzxADR0/KsS6ywtIuYrDFCGBzxwa/xnuRn7DmMU3k5iNDa9nYtr4CtAhDCfua+yo6sY29sM2wuAntcBAcunN077x5A0wUL6wQTCALMDP2MdW18LNl7FrvBhgT4YyGDdCVf6rVKRoeGOCIAKkP13QoLCys568GOFnVO6VJ3wVNMfA5Xc3H1Vq9L3qO1bLWqxT6uZlAs+oOdfVwIabs3IJimY6IVfXB3HmJSYnCVvo5EPx0mwFLdRkg6yugTDZ2ASf8AYpMCPbhRg1RAvU2iMk2Fc0j+A6qgSFCyQNeRSC7IixYA2TshbeySMivX+UxxRVDaic+Fpu4AOxM9XoNkYBsf615Hb73+4Cqi4/58KoR5bNBuPRJyfRYz2XWswdyc3yDTtMGFUVuqxtfoKb503pEs1UfxVKSsOuOf1X8eBJquPMG9UVhird20ZOsXiJ3gZwbPtgwSJPgmavlUlHtQAovGz2Ftoa7Lz5tvdSODac1roYyBb7ofV M= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 526de53b-0090-4f4a-e4c5-08d4ce8c3e7b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR0301MB2114; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB2114; 3:DQvLFDSwj8OFsNu/pEwj8pZKxie+cfFR4khppXbDosMRr7AIq461fOevr+szaqoC4lkw29TzEtvxLqi7XDJShtbjBj59Fw2CR8YSuFIP6+TKKNQCtDXj4kiFGgFnvgGtMe7w43NaHyvIFyyiNZT1FLX8l6RqzhLzxkLqBoc/TMpejKRVH6dqClHIU6mcGEJRMRi4YZx4i9Yt+SJgTyfWxd5yR1zc72gMuhNDuO0zmK4GWRz3H7W2vsEI/iPYnETPndS4QFIJIWHshz5sUqIRuIuNv6jGvxUJWvX4841ybkB5SuXWUM07LcCyq49nhKJKY0LPJZUnlATgrZFGiJPaQZVistMI3PAbQXMwlCw83fa0WYVVDGuSDc/77yXXVE0EAdzXscsgKsyMHHO/OwPwkL7sDEzslcCK3FQKy9vyxjJvAiZKT4oD/gAgpLLfvKiTUVbEPfT8GLNQ6i0vfHx9AGgSEcAYWjVaFUFiWUpfKSvqQK6/khQyHHxlMqrmtWgtAR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-Test: UriScan:(20558992708506)(133145235818549)(236129657087228)(185117386973197)(148574349560750); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(2017060910075)(13016025)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123565025)(20161123556025)(20161123561025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0301MB2114; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0301MB2114; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB2114; 4:yt/xeRIsiWdZviQHx71hsilRdzgk0eQS80LnR0ZW?= =?us-ascii?Q?LwtcTR6VADKjmhL91pBzY/wcwsYE5MGqgOlnmMxJCZ6wB9PpDlsXtN1hR3ou?= =?us-ascii?Q?hcGTT8zn3f0NLiyYz5gUgQKcWC5lfftZ+X6gsrFfklP00+RTfRrVRwVTFUSH?= =?us-ascii?Q?zil5n9MCIveQ82zoqb0SHLM9tBA3FGvrJU2PwwX/Ctq9Ezei2gXH17bcuFLP?= =?us-ascii?Q?xJe/NQi3sarLVweRaXwmHN4dsKDOrGQ6dAA24Y1bV136YwqoJSkELWxdQbkH?= =?us-ascii?Q?MaNL0F/URG1HYcDzvEKZyz/y4dkB4Gu3X+zNCcl7FtmDqKudtXH7ebBRFFpn?= =?us-ascii?Q?Qi/B091WF3OyS9mY4PcVRGH3nqPvurT7kN+jkgVgWWLF0rtsqaZFWnnQ9Ojk?= =?us-ascii?Q?Y/CM7MkiuwuPC/vB6PF0JVdbM/Dzlpfy9123t+sSuj/lft3Kibl+fF/B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ResmNc7CYRWrAhMpBxMigXs?= =?us-ascii?Q?xCEgFXxmIndI1X3mpS0nPqyj+yur3WlCT6ihSFxSbH4OfrbfkBdCoLOyT+5g?= =?us-ascii?Q?yUKamTNn7czhNXRq/tB5HlwQQjxFjJc=3D?= X-Forefront-PRVS: 0373D94D15 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB2114; 23:h83ZOg4vZ5eDLxWdDz3wl2qTNRrKJ9gA3qk3un9?= =?us-ascii?Q?1ShKCT4tsSCYC7PIxKy9i0+RpNe1zULYMrDFjMk83IVK5ehUZWVMneiUwoJN?= =?us-ascii?Q?WfT7eGjBoSuMhNL/IuZrKXxR0Y/YxkYljwVHnnX2Mrt90ISAh1L1Htc2XnBo?= =?us-ascii?Q?Hev4yJIwxPQ4PUzvxuqy21Een6SChl8bsjTZrHyLeY6NvFBHmZHZPJnLpemB?= =?us-ascii?Q?aqC+MxaB33izUJv6YKzx/luPVlth5Xw/Pfwa0Mz4Q+89QR8kaDhlVbGNXvXr?= =?us-ascii?Q?wW4yHabPWy/XzCNlz5OeawNXuDvIrZNbFcF8VEJ02jf8QQ5X+QbAtOwDSUpW?= =?us-ascii?Q?suGCrmFVABrerspKlHNy/FTCLtQpAeDztSIfZ+99eaSOFJnpBLSle8C/ekvB?= =?us-ascii?Q?YpFFf8+Oai9KMmdzaH426NDUJ/2zF0yU7+7pF1WZJ9Oi6/Bw8ENePsP1Me4P?= =?us-ascii?Q?ysLMDblZAvO3mjq0806aoSXtRKfXEanC/sb3znpp/5mhX0PWgrNGzPAC8s0R?= =?us-ascii?Q?mZqqRxazL5xGrhPOequtU6TepcstsJ+rt3rJAoeY16kBEAkBb5Ab6NGq6+tC?= =?us-ascii?Q?B90/JLeH57GI3PAw+tJSnQpt1njO3HWeISPW3xWioUF5svbsNeI931G8m3WK?= =?us-ascii?Q?8+al/GmcF/tl8sMpyTTFW0Lq9BCr8PVY4RNuZyHL/BIq34ghypfwUR+5G5sk?= =?us-ascii?Q?thyS6f7hyJj5rPmPl20S6XCGaK9jOE6z8f3wMmcjKyUftno6AF25rXSntawQ?= =?us-ascii?Q?hZBtntFvjdBADB8B1A71rx7DL9o4VNJSKMJHYXP6cIcRPib71hCXx05fl4hG?= =?us-ascii?Q?/r72oDdgQU7gYeCKiN1FSzbrBwHPq+iySu5Qq9zeTd25IDpDHoVkayNhYnJm?= =?us-ascii?Q?Ospi2aaDiSf0jjKGoD9c6xkDhwQjiVOnGhgMIju1DWptLqEaZJbtKQH6lF2k?= =?us-ascii?Q?34O4/G7Yh7pzfLgu+eOHzC4STntQA3hBH8aUxiBTH2IiydY/XXvYP5UImb1/?= =?us-ascii?Q?wCaJ42w+7HtebeyC5q3Hecg2MWdecX9Vf4oDQ0Xtch+8G+Pk9XdhxCqTtf4Q?= =?us-ascii?Q?428TXiT+IR+0XyhnbQ9uuxBv/Ikdm6aLfOpuqUBbeJmNwHx8Fb7U+WjYtvlx?= =?us-ascii?Q?PU4yi8rD7HxTkmK5cj4IBrUmOpXL+9Ip4DveG4jRztwgn32b5qbDRGkGovCy?= =?us-ascii?Q?pFTOm+in5KI3CLkZ8K6Xc5su6fpiGgiTI8fcQ5zoycD1+10IqwsRgyAYhIg?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB2114; 6:N5g8SzpURdNynTaUc4kEw9CQSLO2il2cd66sS+OG?= =?us-ascii?Q?qi8H3NXTmniUG3YnWgRv9Fw5bZQ0jxQRLEAZKo4hCmAXMVpxj7jqmgghJK8b?= =?us-ascii?Q?YCbJ3B/g6FISXRoQLG/fgJTUoAyI87kPPltCd/1yog4mRgL7we0k78a4k3hg?= =?us-ascii?Q?XPQlbif326kSJSRQBgQUF7a1YirZP3DuidGpr5SaRzxW8fBrjM0EMa0IOHcz?= =?us-ascii?Q?AdPnAnek1M3oosNv94KupOGJ2OgS50YYC7niKj5e/HA3BPaqT6RSQTCQRJZK?= =?us-ascii?Q?L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ZG5MIhkeELT3+LjIlxULhIVGn4zCXsPHOzIJP9xRv/GPjBOs3ngJ7DVBXnG4KLlLRu5EJDDC5lEuvueFqTIzfL/0mUPLZOM6naOknHrsvI0UySU+CqeDXvqpt9DaA3sIg0B3BU2Q1K0FElDZHNENDAtidohpVXEkr1EzPkcBcFzSP85wABA/yNDHRCte7FqJRqeu4QsT1hFA57ltAG9TrtAtUG7SVpKFMfe6ivgFQfr3jGK5CeTWqOAanYg4fTp4b+p3wdis3V9Z+LPjrys= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2017 09:55:10.4040 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB2114 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch contains the minimal changes required to support imx6sx OPP of 198 Mhz. Without this patch cpufreq still reports success but the frequency is not changed, the "arm" clock will still be at 396000000 in clk_summary. In order to do this PLL1 needs to be bypassed but still kept enabled. This is required despite the fact that the arm clk is configured to come from pll2_pfd2 and from the clk framework perspective pll1 and related clocks are unused. This patch adds pll1, pll_bypass and pll1_bypass_src clocks to the imx cpufreq driver as imx6sx-specific for the bypass logic. The definition of pll1_sys is changed to imx_clk_fixed_factor so that it's never disabled. Signed-off-by: Leonard Crestez --- Some potential issues: In theory pll1_sys could be explictly kept enabled from cpufreq. It's not clear this would be better since the intention is to never let this be disabled. The new clocks are only added for imx6sx. The frequency changing code relies on the fact that the clk API simply does nothing when called with a null clk. Perhaps it might be better to accept ENOENT from clk_get on these new clocks instead of checking of_machine_is_compatible. arch/arm/boot/dts/imx6sx.dtsi | 8 ++++++-- drivers/clk/imx/clk-imx6sx.c | 2 +- drivers/cpufreq/imx6q-cpufreq.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index f16b9df..4394137 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -87,9 +87,13 @@ <&clks IMX6SX_CLK_PLL2_PFD2>, <&clks IMX6SX_CLK_STEP>, <&clks IMX6SX_CLK_PLL1_SW>, - <&clks IMX6SX_CLK_PLL1_SYS>; + <&clks IMX6SX_CLK_PLL1_SYS>, + <&clks IMX6SX_CLK_PLL1>, + <&clks IMX6SX_PLL1_BYPASS>, + <&clks IMX6SX_PLL1_BYPASS_SRC>; clock-names = "arm", "pll2_pfd2_396m", "step", - "pll1_sw", "pll1_sys"; + "pll1_sw", "pll1_sys", "pll1", + "pll1_bypass", "pll1_bypass_src"; arm-supply = <®_arm>; soc-supply = <®_soc>; }; diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index b5c96de..aa63b92 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -199,7 +199,7 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) clk_set_parent(clks[IMX6SX_PLL6_BYPASS], clks[IMX6SX_CLK_PLL6]); clk_set_parent(clks[IMX6SX_PLL7_BYPASS], clks[IMX6SX_CLK_PLL7]); - clks[IMX6SX_CLK_PLL1_SYS] = imx_clk_gate("pll1_sys", "pll1_bypass", base + 0x00, 13); + clks[IMX6SX_CLK_PLL1_SYS] = imx_clk_fixed_factor("pll1_sys", "pll1_bypass", 1, 1); clks[IMX6SX_CLK_PLL2_BUS] = imx_clk_gate("pll2_bus", "pll2_bypass", base + 0x30, 13); clks[IMX6SX_CLK_PLL3_USB_OTG] = imx_clk_gate("pll3_usb_otg", "pll3_bypass", base + 0x10, 13); clks[IMX6SX_CLK_PLL4_AUDIO] = imx_clk_gate("pll4_audio", "pll4_bypass", base + 0x70, 13); diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index b6edd3c..caf727a 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -31,6 +31,9 @@ static struct clk *step_clk; static struct clk *pll2_pfd2_396m_clk; /* clk used by i.MX6UL */ +static struct clk *pll1_bypass; +static struct clk *pll1_bypass_src; +static struct clk *pll1; static struct clk *pll2_bus_clk; static struct clk *secondary_sel_clk; @@ -122,8 +125,21 @@ static int imx6q_set_target(struct cpufreq_policy *policy, unsigned int index) clk_set_parent(step_clk, pll2_pfd2_396m_clk); clk_set_parent(pll1_sw_clk, step_clk); if (freq_hz > clk_get_rate(pll2_pfd2_396m_clk)) { + /* + * Ensure that pll1_bypass is set back to + * pll1. We have to do this first so that the + * change rate done to pll1_sys_clk done below + * can propagate up to pll1. + */ + clk_set_parent(pll1_bypass, pll1); clk_set_rate(pll1_sys_clk, new_freq * 1000); clk_set_parent(pll1_sw_clk, pll1_sys_clk); + } else { + /* + * Need to ensure that PLL1 is bypassed and enabled + * before ARM-PODF is set. + */ + clk_set_parent(pll1_bypass, pll1_bypass_src); } } @@ -216,6 +232,17 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev) goto put_clk; } + if (of_machine_is_compatible("fsl,imx6sx")) { + pll1 = clk_get(cpu_dev, "pll1"); + pll1_bypass = clk_get(cpu_dev, "pll1_bypass"); + pll1_bypass_src = clk_get(cpu_dev, "pll1_bypass_src"); + if (IS_ERR(pll1) || IS_ERR(pll1_bypass) || IS_ERR(pll1_bypass_src)) { + dev_err(cpu_dev, "failed to get clocks specific to imx6sx\n"); + ret = -ENOENT; + goto put_clk; + } + } + if (of_machine_is_compatible("fsl,imx6ul") || of_machine_is_compatible("fsl,imx6ull")) { pll2_bus_clk = clk_get(cpu_dev, "pll2_bus"); @@ -380,6 +407,12 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev) clk_put(step_clk); if (!IS_ERR(pll2_pfd2_396m_clk)) clk_put(pll2_pfd2_396m_clk); + if (!IS_ERR(pll1)) + clk_put(pll1); + if (!IS_ERR(pll1_bypass)) + clk_put(pll1_bypass); + if (!IS_ERR(pll1_bypass_src)) + clk_put(pll1_bypass_src); if (!IS_ERR(pll2_bus_clk)) clk_put(pll2_bus_clk); if (!IS_ERR(secondary_sel_clk))