From patchwork Fri Feb 15 17:48:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10815625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F04A16C2 for ; Fri, 15 Feb 2019 17:49:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCF582E2FF for ; Fri, 15 Feb 2019 17:49:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D14122E3F0; Fri, 15 Feb 2019 17:49:05 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 79DDB2E2FF for ; Fri, 15 Feb 2019 17:49:05 +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:In-Reply-To:References: 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=HlrrCu+XMRyL6kY5PaoMLhM2ui3M8rne5iLPpwJ9fGE=; b=p6eplN8QS9/1gE rdm5uF5H/co1mOJELPtAgG4aogJIH9u/h5meEVk9f/N9Vt/FrwmGTgRkGpq2/yRqBSqW2NeYQ8M4l +SN1jlTyV35SOcXZZjshBQZ0MRf7d3CfXjnxvSi7rdFkYvEIDQuPVoEfofylQpCmluJSUkjvGHm57 tSvuDAR9/eiWJx3ad0/z2tRS+f7tHPeCekLMWK29/7bf4ZYqlrWE/3afrP/pLl/FGoGvq2QW2Sr2/ CBF0LcJiIPvAPpoEiLDofAqaWrkWjcYUMD7ETfFl97YrMVlksGYQA8w5qeVfsN67DI8VIb27Vvl+E tOdKP+kjSGnLnguDElVg==; 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 1guhbj-0001q8-SY; Fri, 15 Feb 2019 17:49:03 +0000 Received: from mail-he1eur01on0625.outbound.protection.outlook.com ([2a01:111:f400:fe1e::625] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhbW-0001Y8-9o for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 17:48:51 +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:X-MS-Exchange-SenderADCheck; bh=EtrEmcHgM/bH1bh2KybgVmJuURLvXK5o/Ua8MaHXjlk=; b=KWcvUzKolwBjSL02rO9gAPB8W4RYX2wM0eTldsbhRkZyF5gvICb4+ge3c8P+MebbIBHi3z6lrIX45EVPAoeK3oZKdusfIKrK2n31Y9yAclxgUY/rhl8kjF6yrLTDq8IXkCKREfiRhrlZB08SNbVk1AhlcJ+2vsi2z8ZbrTApW2c= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB5330.eurprd04.prod.outlook.com (52.134.93.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Fri, 15 Feb 2019 17:48:44 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c%3]) with mapi id 15.20.1601.023; Fri, 15 Feb 2019 17:48:44 +0000 From: Abel Vesa To: Mike Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Lucas Stach , Angus Ainslie , Rob Herring Subject: [PATCH v2 1/3] clk: imx: imx8mq: Fix the rate propagation for arm pll Thread-Topic: [PATCH v2 1/3] clk: imx: imx8mq: Fix the rate propagation for arm pll Thread-Index: AQHUxVaxagpP6ZoxDUewlg7OVff+Ug== Date: Fri, 15 Feb 2019 17:48:43 +0000 Message-ID: <1550252913-24532-2-git-send-email-abel.vesa@nxp.com> References: <1550252913-24532-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1550252913-24532-1-git-send-email-abel.vesa@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR0502CA0009.eurprd05.prod.outlook.com (2603:10a6:209:1::22) To AM0PR04MB5779.eurprd04.prod.outlook.com (2603:10a6:208:131::23) x-originating-ip: [95.76.156.53] authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e18a302e-070d-451f-fa20-08d6936dd3e4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB5330; x-ms-traffictypediagnostic: AM0PR04MB5330: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM0PR04MB5330; 23:YIJeNNlzDmYsFZWWjYUOGZFcL5qS1GjGz0V3gw5?= =?iso-8859-1?q?cqYj5iB/7G3HwKm?= =?iso-8859-1?q?sCBQ7G7I45Vrh/hw+QDNIdIkbjrKLCbWGqWdBx16uMpNW/Ryl/N+A8mc/Lvp?= =?iso-8859-1?q?kATfLupLduX0eHrvOlr/gFi45FWaMZFzd9Yr+QcfvW7aOaMBlMUE10IJ0nLw?= =?iso-8859-1?q?OdJko4Eb0o/2Rl04J72fcfMXJQV/y/5FeemrNeEj8YCRkq2ejFyxSvHBFcf5?= =?iso-8859-1?q?EO3W/gQDacPq9QWL5h0LDLo6wSOmrMcjNzwKhmvAuJZx0uvaxbiOpYQoBzsU?= =?iso-8859-1?q?tp6h8KU0aGfZcOFNLMo8Rv3nOEgMynDcYEJr3eIFXcYmMVcfAOhbfzdEGqWE?= =?iso-8859-1?q?UwAQPmb6aum6BHdOR0UnTgwCaABqoug7hxsN/Jvsxy9Lrv5IHvrryQnV92oX?= =?iso-8859-1?q?8FIhqEsBbgHSuCAzNxb7PYarBz9TotDpUNQQNAoi7vClyvrVnto6awPgo5vy?= =?iso-8859-1?q?/f28NgqIbE59Z1TchEcOJYYO1ezGmxSRsBAnsz2v5ugoYIpG9pxc9BT5jf7e?= =?iso-8859-1?q?YNwmj18VRkmR95E858B2GB2E5/h9qYMRRT8SrEm2Jtqg9UCtYwDVIv7vQKP1?= =?iso-8859-1?q?2HytquGX8v/h/QAPwPOoYqsMY2N6yNB64P9eQPIIGCxGaRVRn66eo+M3rAxh?= =?iso-8859-1?q?OXZM2CJVCA58Mlx2hECsYXtr9CrIVvHbowVF/IXjMNMHFzipgi5IM47gSw9K?= =?iso-8859-1?q?KDZLyEBiOqi4V8LTFaaMLZEJdntsbIHxG5xn8QJ+9qLxEaUUJZypr3p0p6Hx?= =?iso-8859-1?q?z6iq3rYScX6ehGEioDZCQGQvoVx64YYqEFvkbuU2FErNfkWj2YfpPnXCHNBo?= =?iso-8859-1?q?iuG/mR+a3AqDL3TB7hOzFH/uHArGbq2G+eOYxqvuBKzCOf237yStNMVib/kx?= =?iso-8859-1?q?Dk5FGpiDAK2nFapESVSeJVnV5lBVPU1v2v31jqoX5aLSm2imoi7Fct31G9tW?= =?iso-8859-1?q?CiS+KRdEVIqDFtpOkHQXQTG21b/uy0psKcNGxJcY9qxYUg0xaJFyfF/hrmjQ?= =?iso-8859-1?q?58we5G7Juxf6tHyYHiEnB7unc5xBTwOMmxTd+ZaYM7oKGWsiTRgt+A5XGNWG?= =?iso-8859-1?q?vOTOJTy6tOvOPXeTBW6IFQlRkq/Kw1JSk4cMpM9EygZOoS4Q/pcKGDnARius?= =?iso-8859-1?q?E0bAS1RaP3Jq1Y0Q3t1qFRb671+dkbUirv5mh2+/yH+/StXXN3rouzM0w/4c?= =?iso-8859-1?q?/BJfvFTVTzOh9S8Zd2pMHAJDd2nQ+DRIS7iNawxuC2mXq+mVpP8GD9hn9BFb?= =?iso-8859-1?q?gRTtw=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09497C15EB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(366004)(346002)(396003)(376002)(199004)(189003)(6436002)(14454004)(6116002)(3846002)(97736004)(186003)(478600001)(476003)(110136005)(71200400001)(105586002)(106356001)(26005)(71190400001)(11346002)(68736007)(2616005)(86362001)(446003)(6486002)(50226002)(54906003)(316002)(44832011)(486006)(7416002)(99286004)(81166006)(81156014)(8676002)(53936002)(76176011)(8936002)(66066001)(386003)(6506007)(4326008)(36756003)(25786009)(52116002)(2906002)(305945005)(6512007)(256004)(14444005)(102836004)(7736002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5330; H:AM0PR04MB5779.eurprd04.prod.outlook.com; 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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: WIFOJWeLXSwRM14pLHIlLFK015aDWk4k6TFuyyNVBjVkufjnrcWRfrXoZ+92tWPA/MiwT43wBpTVPq+YyS6qiaZEd/+HzGqzNMGx+jiC6KNKbfR0bekI7qU8xRiPPzAOY43kkxgvirwQAB4zm2d3VZhLxdqfwTNVqgE31LUVQI+kV1fnYw75PImc/ZQxRVDX6uxK6c3pwwsEQ/6RULRlFRddmS4MsJ2ZAStOE8DxRnNh5osau5WP4WA/DTORsWoiUTM7EM35f6B6GWwo3uVbJ4mCv/xOl//ZPzC6f0a5AxBx7zUmd2A9AXFOFlFajt6kv1426VN4JcfrlDD49iQreDkx4R7VvRQ1pAUQogd00uEYdyIrt48qYVhjCXaWPrEZbvhnok2jkbKg+KymkmVmUZGwypvBJDsFtFNyp2XKkRg= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e18a302e-070d-451f-fa20-08d6936dd3e4 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2019 17:48:42.9036 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5330 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_094850_338566_5DC9CBD5 X-CRM114-Status: GOOD ( 13.92 ) 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 , Anson Huang , Linux Kernel Mailing List , dl-linux-imx , "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 The arm pll bypass needs to propagate the rate upwards in order for the cpufreq to work. Fixes: b80522040cd3f ("clk: imx: Add clock driver for i.MX8MQ CCM") Signed-off-by: Abel Vesa Reviewed-by: Lucas Stach --- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 398ab0b..57499ed 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -340,7 +340,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_DRAM_PLL2_DIV] = imx_clk_divider("dram_pll2_div", "dram_pll2", base + 0x68, 1, 6); /* PLL bypass out */ - clks[IMX8MQ_ARM_PLL_BYPASS] = imx_clk_mux("arm_pll_bypass", base + 0x28, 14, 1, arm_pll_bypass_sels, ARRAY_SIZE(arm_pll_bypass_sels)); + clks[IMX8MQ_ARM_PLL_BYPASS] = imx_clk_mux_flags("arm_pll_bypass", base + 0x28, 14, 1, arm_pll_bypass_sels, ARRAY_SIZE(arm_pll_bypass_sels), CLK_SET_RATE_PARENT); clks[IMX8MQ_GPU_PLL_BYPASS] = imx_clk_mux("gpu_pll_bypass", base + 0x18, 14, 1, gpu_pll_bypass_sels, ARRAY_SIZE(gpu_pll_bypass_sels)); clks[IMX8MQ_VPU_PLL_BYPASS] = imx_clk_mux("vpu_pll_bypass", base + 0x20, 14, 1, vpu_pll_bypass_sels, ARRAY_SIZE(vpu_pll_bypass_sels)); clks[IMX8MQ_AUDIO_PLL1_BYPASS] = imx_clk_mux("audio_pll1_bypass", base + 0x0, 14, 1, audio_pll1_bypass_sels, ARRAY_SIZE(audio_pll1_bypass_sels));