From patchwork Wed Mar 28 06:46:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10312279 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 C43FE60212 for ; Wed, 28 Mar 2018 06:47:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B293728CDC for ; Wed, 28 Mar 2018 06:47:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A71BF28D1E; Wed, 28 Mar 2018 06:47:49 +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 [198.137.202.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 0B2DD28D18 for ; Wed, 28 Mar 2018 06:47:48 +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=rv5xYT5srd+Jd18dxGhPZu+nx3bf/JsrTH/myBCX4Ho=; b=WBY5AUnUWJjDQK 1lZRl9GOJEtZlcs9xNYd0sKQVhqJOXUWEmzOVQZimkfjy8aceeahZGYQgp6j4/snhpXizPrlO0yML CcLYslO2mkUjup3t7Ricf3U9ckN3EtOj5bgRIcEbmHniKfQyia7ugTHXCqWF3UzAgRlmBDHJDwhmI xYWSgljFFr0g/dWkFJfHLyO56BVJJrsbWMAkuFP88H11tbNJW5S6wc41zqPEa8tjzpOIoY/cADu8h H78foUNIgfP7Tw1FtgWx6Z8/7y9yi0OrXQ5eT+6UIafsVWcWmhfHSmCrwmcBZGvHZNVOtb/AceqCE QwmZkXM2FdmpgmpI62ag==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f14s3-0004TY-I3; Wed, 28 Mar 2018 06:47:43 +0000 Received: from mail-ve1eur02on062a.outbound.protection.outlook.com ([2a01:111:f400:fe06::62a] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f14rc-00049v-4b for linux-arm-kernel@lists.infradead.org; Wed, 28 Mar 2018 06:47:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YKDwMFy/7wtudWFMWj8TkeVY/zcmolk0bvQx9grfWCU=; b=c5C/pduNUUZFgi2jNBh4w5strKMkr/U3MT7tDNVWeGIFnr7QUrRuN2Eix98B3jO9+Xadn5kqLgnaUpzEuU97FmFEOReGJU+//7jUajS/+irJnVSasfIpf1lMVaLzHDLTLi3S6GuZwhtJWLPx3LdPF9qvVGIowOlPWjHS+sINHgc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; Received: from fsr-ub1664-175.ea.freescale.net (95.76.156.53) by AM4PR04MB2129.eurprd04.prod.outlook.com (2603:10a6:200:12::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.10; Wed, 28 Mar 2018 06:47:03 +0000 From: Abel Vesa To: Shawn Guo , Sascha Hauer , Fabio Estevam , Michael Turquette , Stephen Boyd , Peter Chen , Irina Tirdea Subject: [PATCH] clk: imx7d: Move clks_init_on before any clock operations Date: Wed, 28 Mar 2018 09:46:36 +0300 Message-Id: <1522219599-10831-3-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522219599-10831-1-git-send-email-abel.vesa@nxp.com> References: <1522219599-10831-1-git-send-email-abel.vesa@nxp.com> MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: AM5P189CA0016.EURP189.PROD.OUTLOOK.COM (2603:10a6:206:15::29) To AM4PR04MB2129.eurprd04.prod.outlook.com (2603:10a6:200:12::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8c390919-be49-41fa-e45e-08d59477b746 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM4PR04MB2129; X-Microsoft-Exchange-Diagnostics: 1; AM4PR04MB2129; 3:9KwMHrv5u1zKamPq5VGyIAgXE0k4Mhd3VM1A/NgO5Sc5PwSG6pXIvhJxLwgQv6lxi2n4r5BjoEnCbR6/50K8ENbK7a/M/BEF/BY5knT/mlM7tMxl1d8JygLN5SmfxTUvN/EKr7vhV0lv1fLxgFtgKVrkRAUuNuV8DVERmPIDgTsOpd13aowEXN1WZfuu9gsvOYZRbFK1eMYd1EjL9mDFBg86+rYM+0JPgnbhXVq3OWfNLtqRclX2WULpYIRoCNOk; 25:WgqzW80K22l9DRTdVXK+zls43jqnYnDVcz6TUP3bDweHGfs16GKk+er24wVEmlvaCd4vIjy20lQq1u8w6TFBaKAYzrcPTrCyMG/t8dH9TGAOxewd61U+BsBg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OA3d1Ek5STi2K; 4:8s8qgCZHnyrk31ZxfvaHdnBs8DpXSCrqbp/Tmr/FNei+OeywU6Ua9fqQp3XhSDUmlfyDM/upixhSfCGrzgZeboagn2X7W1T8loDCofkb9Xu7gYv6K5fgFpjYb9f278333W5LqCuCw465penDrND/or9lW+o7kxZOCGTlIBT+yiRaoCGQHeAhIBxxfREtTnRARXGcWqq7U2Taaz39rLDqWufbfOlohm2x1EXWtpYTObcg88XEFtxhmabWC43i/RYpZOCi3UsiggbmKB0NcAm8VyvmfzT5VTMNnUuaIkchwQHmgxWmYEdyuHw0F5+7qZKo04/cgO6lz+Rtb66BOPK9ZanuRRFMIObIKIpk/etJGhk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(10201501046)(3002001)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:AM4PR04MB2129; BCL:0; PCL:0; RULEID:; SRVR:AM4PR04MB2129; X-Forefront-PRVS: 06259BA5A2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(346002)(376002)(366004)(199004)(189003)(6636002)(47776003)(6666003)(186003)(6506007)(16526019)(386003)(48376002)(3846002)(51416003)(6116002)(36756003)(26005)(76176011)(6512007)(50466002)(446003)(54906003)(305945005)(106356001)(486005)(2616005)(50226002)(956004)(316002)(486005)(81166006)(478600001)(16586007)(105586002)(2906002)(81156014)(476003)(66066001)(8676002)(110136005)(11346002)(6486002)(97736004)(53936002)(1857600001)(52116002)(86362001)(7736002)(4326008)(25786009)(5660300001)(8936002)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR04MB2129; H:fsr-ub1664-175.ea.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR04MB2129; 23:NvPvxKeS6yfd9diJXyNoi/5NTwMmXn5mv7YSOepDh?= =?us-ascii?Q?Jb76mI2FsW4CaCMIF3HBz4e2U354uf0M+LStZw2/WzPFko5M2JyLvWDS23ZV?= =?us-ascii?Q?n5WVHbfzJWhpx1Xqywy/WbfAftAw5vr2yXkliWqPHIInBvkUYAnlaP+QwdKq?= =?us-ascii?Q?omt65cSfq24NEEWyEPAO2NTdCdrwOzk0QT860glNE3ziGdsL/STOHU0Wsw3S?= =?us-ascii?Q?sgwyMMmQZIxXG4VyrWMsgdJk4JxlWusQvCj6xzsaeY9pT+MTvzm6ScvL4RqI?= =?us-ascii?Q?1DnN6NLL7mOu09o52zrjtMXipTvrPAhJiUbHZhabRNP4IwnT3bWow1OLbWnK?= =?us-ascii?Q?haRn/a8LncTkHPYPN7/g+uh580FswIE6Kj6tfoPpD2orhvplUSMm/g905q1u?= =?us-ascii?Q?UX14P3lfyYNmYYMhg6lZ+a6RL8X+H/b7oiAjhjfH4iYwNIHz9vu9LfdXd3Nk?= =?us-ascii?Q?4jGz+q8u7/qL47dgCgOmbDBZNWnvUCXQtCvtFJZ0PagHcu4ilIxLH/m709yH?= =?us-ascii?Q?hZExs2dEqW7Xt3YLQ2kbRHozl9W+/UtjQd/9ovX9Nd8PIwPCtnuM8HILLhun?= =?us-ascii?Q?6vvajbcKGZjB3Jx2L3BeD/bNRpNKlVU9xvfjhsr9BKoYR2SuiiNMWqTCyHw7?= =?us-ascii?Q?mhX2lvmsyzOqefyHGWikMUxV+U2zKtCU0NO8jAAWbcyz4Gdzeq5tZCyAVpnO?= =?us-ascii?Q?4CuZv1DtObhzIZP6AMUwOvpfr2eW4DLtpzUP3pQmJ7zukf5LPhfDds9nA6P9?= =?us-ascii?Q?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6YbzQCbSvXhExF5NFhE/ACQ2jy9+EZdm2ten7OJ6lQVpL8lhfdDOOvNfL18tu1eUtXs+6OuSnWPlrLP+G0vdEjD48Cmx7HQGEId4hLXx2F8QJ6snbpFAAhY3kq5yyGa9pJGQrf8bb8davWijRAz4qCE2PK3nbyViFmUCbtzeaVuJn7UFYtjg0saAbWf+vQ6mtveLiDLTFgyJZ9Ei9QS8Ntdcp3GNn9SKinvxmC+SlIQek8ryJMFdhdRXumOM58HA08XfrKbOk//MRPfvdKYh/5w==; 5:MzUjhXQ3USh5KOQmAqzkKERnUjFfU5eGVb6MRFugajCTNT0lXr8s1qB3NHY64t5h6xsxpnHRbmTqs2ayk8Oz7zK7a8oNlr6jlwIP4kmfUTDXIOSeHG6kT0s5Wd9LGQ4bYJjS9Y4EH9HW9kzcZRoWJWV2T1yjAqETVrji6zckAHc=; 24:S081dx7SRVynFCeQHyHqQi24DnEz8NkaXR/hXOysr+XO20sMQOgT74mNZn9hm9hs8H4LR7dVEIiQtHlVNN3eK77qGMaMfY7eHHWou/E/UGM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR04MB2129; 7:W+ibCsgjFCgwtRQuusGcqDHSRe53qaM9HrzdbG5U+gQV9Aq0H5cjcFhTckdhZK1o5XZTkVSos90dZzgbZSZWcqPoxtMJHIVbpcpEhtmJPLEPAbkXa0LQmgeGLD/G/HL3JlKAZKzy3t17sOLUgtCU2lav8Q9wTQIiA00vrxFb6uwaD5vvZTo0bfBhsoqMKpLgoh6DlpPszdvIDz9A1o3VYumfxrgafiFY8CoJUZrnpde1+sMPCfKQzpo7IYkV1lTA X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2018 06:47:03.1684 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c390919-be49-41fa-e45e-08d59477b746 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR04MB2129 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180327_234716_183171_F2D20B65 X-CRM114-Status: GOOD ( 12.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Abel Vesa , Abel Vesa , Anson Huang , Dong Aisheng , linux-kernel@vger.kernel.org, Ranjani Vaidyanathan , linux-imx@nxp.com, Daniel Baluta , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dong Aisheng For init on clocks we should move it at the first place in imx7d_clocks_init() before any clock operations, else the clock operation may fail in case the clock is still not on. Acked-by: Ranjani Vaidyanathan Signed-off-by: Dong Aisheng Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 89bfa75..9b17805 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -433,13 +433,6 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_PLL_AUDIO_MAIN_BYPASS] = imx_clk_mux_flags("pll_audio_main_bypass", base + 0xf0, 16, 1, pll_audio_bypass_sel, ARRAY_SIZE(pll_audio_bypass_sel), CLK_SET_RATE_PARENT); clks[IMX7D_PLL_VIDEO_MAIN_BYPASS] = imx_clk_mux_flags("pll_video_main_bypass", base + 0x130, 16, 1, pll_video_bypass_sel, ARRAY_SIZE(pll_video_bypass_sel), CLK_SET_RATE_PARENT); - clk_set_parent(clks[IMX7D_PLL_ARM_MAIN_BYPASS], clks[IMX7D_PLL_ARM_MAIN]); - clk_set_parent(clks[IMX7D_PLL_DRAM_MAIN_BYPASS], clks[IMX7D_PLL_DRAM_MAIN]); - clk_set_parent(clks[IMX7D_PLL_SYS_MAIN_BYPASS], clks[IMX7D_PLL_SYS_MAIN]); - clk_set_parent(clks[IMX7D_PLL_ENET_MAIN_BYPASS], clks[IMX7D_PLL_ENET_MAIN]); - clk_set_parent(clks[IMX7D_PLL_AUDIO_MAIN_BYPASS], clks[IMX7D_PLL_AUDIO_MAIN]); - clk_set_parent(clks[IMX7D_PLL_VIDEO_MAIN_BYPASS], clks[IMX7D_PLL_VIDEO_MAIN]); - clks[IMX7D_PLL_ARM_MAIN_CLK] = imx_clk_gate("pll_arm_main_clk", "pll_arm_main_bypass", base + 0x60, 13); clks[IMX7D_PLL_DRAM_MAIN_CLK] = imx_clk_gate("pll_dram_main_clk", "pll_dram_main_bypass", base + 0x70, 13); clks[IMX7D_PLL_SYS_MAIN_CLK] = imx_clk_gate("pll_sys_main_clk", "pll_sys_main_bypass", base + 0xb0, 13); @@ -886,6 +879,13 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) clk_prepare_enable(clks[clks_init_on[i]]); + clk_set_parent(clks[IMX7D_PLL_ARM_MAIN_BYPASS], clks[IMX7D_PLL_ARM_MAIN]); + clk_set_parent(clks[IMX7D_PLL_DRAM_MAIN_BYPASS], clks[IMX7D_PLL_DRAM_MAIN]); + clk_set_parent(clks[IMX7D_PLL_SYS_MAIN_BYPASS], clks[IMX7D_PLL_SYS_MAIN]); + clk_set_parent(clks[IMX7D_PLL_ENET_MAIN_BYPASS], clks[IMX7D_PLL_ENET_MAIN]); + clk_set_parent(clks[IMX7D_PLL_AUDIO_MAIN_BYPASS], clks[IMX7D_PLL_AUDIO_MAIN]); + clk_set_parent(clks[IMX7D_PLL_VIDEO_MAIN_BYPASS], clks[IMX7D_PLL_VIDEO_MAIN]); + /* use old gpt clk setting, gpt1 root clk must be twice as gpt counter freq */ clk_set_parent(clks[IMX7D_GPT1_ROOT_SRC], clks[IMX7D_OSC_24M_CLK]);