Message ID | 1526533248-21990-1-git-send-email-Anson.Huang@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 8C06760247 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 17 May 2018 05:05:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 799BA28892 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 17 May 2018 05:05:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C2A7288C5; Thu, 17 May 2018 05:05:04 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI 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 DC04E28892 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 17 May 2018 05:05:03 +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: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:In-Reply-To:References: List-Owner; bh=ifH2P3IstMt5KYk1SKJRbOFb+d+VkSQHHR/0r/06q00=; b=GULy27jdvMOkr0 x+7VNGqzPYSJumil+hxv0jd+mCxEu9ytEoHn2CSdIoonl6VCM7MrDNYyyJ72ZRYpf0LBC44Sf/7Li LjH83Z3feLeaJ2w8KiIwaHGhiDSJq2M+pA2j6Cz7frieDhO2/Q5+9vKSQGeaVNP8nJc4E80KBCzMq w312/SnUOzMt+YNxjVxmkeeMQsXNpmjKReoFViGWJr5pbqN15xwWaSpGOiGPJ2t5kAkgGWPfS4bnz sbdP0serjE3w6X+3eNCWpzQDfK8E0MIYsLFktac7f3h/KKVODhjYOaTVVbTdC958+fuHD8XAuFBf4 2VLUPhpj08iB1E/ZJPRA==; 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 1fJB5w-0007mz-4f; Thu, 17 May 2018 05:04:52 +0000 Received: from mail-db5eur01on061b.outbound.protection.outlook.com ([2a01:111:f400:fe02::61b] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJB5q-0007kj-PL for linux-arm-kernel@lists.infradead.org; Thu, 17 May 2018 05:04:48 +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=xsAZcyKYMVdImGrJ0/TMnV6sNiR0Yp5ER4DLJPAVd1M=; b=gy5nY7DFc9Hk+0egNJ5TCRjAOCH1HDl515i97WHMrp5RWi3n+Nd0mbC0zg45BADmlG6lR/FUMcYespcP8pdwBvMyLseJQCQ9vc5ykM4peRriibELbtMoZWgsY+WE38r58hZS/I95o9BMh5owcV6SOBrWwgqFk9ppV23gvEXg00I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by HE1PR04MB1321.eurprd04.prod.outlook.com (2a01:111:e400:5889::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Thu, 17 May 2018 05:04:21 +0000 From: Anson Huang <Anson.Huang@nxp.com> To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, mturquette@baylibre.com, sboyd@kernel.org Subject: [PATCH] clk: imx6sx: disable unnecessary clocks during clock initialization Date: Thu, 17 May 2018 13:00:47 +0800 Message-Id: <1526533248-21990-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR03CA0016.apcprd03.prod.outlook.com (2603:1096:203:2e::28) To HE1PR04MB1321.eurprd04.prod.outlook.com (2a01:111:e400:5889::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1321; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1321; 3:NEMF7bbhV/nTbWA2hv7kLYvCxPHJunR6gTF5DI/aR70wAmzQeQowP43oLwH4/VQM8Pq+6118tnnoIrQLtve1zdg21oy+ND6gDVJCaSgRvAFUVymapkb7E5m8zId4Bb8fMJmZK46hPdnCWIkR5tJZPyAeFQd2wC5ekiWb+XmKNn45+dsJEJo8Q6jtNW33UIwGAs6/JFi+lyAlvC4LT7AFc5B8JUvTqNhVMCzUFNHD6PWk4RkrSbIfY4azH2orftjs; 25:5jUeVi3QO/N/DEr8AuFPbiSVhO3CFjKT1Wz3rVII17TeUUEdj7+2wMjLcliMbzRn4HofmKMw/K+e/rppeVAwkIjYRdnlQdjBcFliNc8XGgqwAyxqcbd1tonqnULrIg9yMHFstuu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4qo0yJPa6IZT9+eUCk4ClZHPbTtD1AzI5KFx24z0M0Ss2aNkUAFgqlyvpXdyFxZPiwCPhiyJE6oFisrf8T96qXOa79khmx/S8CuOyvCqYpCgzJi4abwGl+Jswl/YnsvcP923VOfTkva6CraGnETobKsSHvDSMrCyxBoBlaxrHJboubcZSsIfVASBYXRqLbg4UjnPCnu4SH3bQnORwF8BwdGFi87JMUtPad+7/ywn5QN4uXPomBYt3aDsXpxNF3IcfdYAVtwqHsLke58pDr X-Microsoft-Antispam-PRVS: <HE1PR04MB13219A6C56153C6149FDC424F5910@HE1PR04MB1321.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:HE1PR04MB1321; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1321; X-Forefront-PRVS: 067553F396 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(39860400002)(366004)(346002)(376002)(189003)(199004)(486006)(48376002)(6486002)(1857600001)(53936002)(50466002)(68736007)(16586007)(956004)(476003)(2616005)(6666003)(6116002)(4326008)(52116002)(66066001)(47776003)(305945005)(86362001)(6512007)(51416003)(2906002)(3846002)(386003)(97736004)(6506007)(25786009)(105586002)(186003)(106356001)(36756003)(26005)(5660300001)(81156014)(8676002)(316002)(81166006)(8936002)(7736002)(50226002)(478600001)(16526019)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1321; H:anson-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:3; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB1321; 23:GZr36FsWc8L3y1TslqTNeXnuIy67MO5Ug3jrnzCyt?= =?us-ascii?Q?m67ZLvhirWmO9klhfxcOMq5C5jQi1xJF6DCF8K8/HRPCJ8SKd4XdNQVYoRhP?= =?us-ascii?Q?DhsWPB8DGoon2TECnbCLJjCUlECqocDATjMzWepZRGOnXOPJMk5DtHakwtA0?= =?us-ascii?Q?UcL0JGv84zPEHakUcTp+NrQtglo2APtLhXzbnoL8mSuEDbpD1ht6uhGUXDeO?= =?us-ascii?Q?/6SMFNUpRl4cLZY23t5gfg+YNvnwkMokGrmAAyL4ESjiHWv9Zo10Vjxpr7Y1?= =?us-ascii?Q?mZnyHzMf4JYLUeEqT6tmK4cGyIzttz3Q/w/aRgi6LAdSe4zEhRuNFxuDxnSa?= =?us-ascii?Q?/gZc+vp5puZJ9gy6d8y7kc0myqbe44eIPp8ymLL9kAMdiUxQ+13A0PRPJH4e?= =?us-ascii?Q?WLRA2+dSVRbcF6lC4Dw5jJjg7ndVw7ecBGw3KFpQayCSBcfJBdefq+XBw+Hp?= =?us-ascii?Q?v7i7Ied77hFwyEC1I4m/mpxq85rqUJsRsGzZUvzkpaOlKtA+aH+00CcYdrX4?= =?us-ascii?Q?1U71yw8IM/KbnzFKIZ2l8Go1n0/wnXpS7yE0/cCDWxo8u6z+4WO8U1N6Csn/?= =?us-ascii?Q?bJAXenuV7eQjjn1l5+SjjdVP7P5utcp6zENToi67ZvDo9Yd0v0y996R0a/0w?= =?us-ascii?Q?vcUMHydGJbxheR8Dc/dffthNF9j/9ke8ccIpzXZ3i2mTPl2d4XfreVOsVYPx?= =?us-ascii?Q?AKHSPCqz7p2onPAv1/zTqZhWOOF9Pu7IR/FQmkzA3lQjQdROCLu3N6PvuP3V?= =?us-ascii?Q?/16mrvB4eV9KMwHbXMY6kKyQgMY8Re7jYsNJW8lszo0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jcSXx/ma21zI2BGppgdv0/DNRFc8tOS9FSaOzSXWa5VJNqrWoyEBIUOMedkomvNG2jd3qOSb2w8E0w==; 5:bhqhFfb5cONrU0Fl1EGNMG/cm2kou+R8D+ZTYEqy87od8wJ32etvLFRdDz81u9uoJT3PierNFbZT6SghtSxB5gKD55BY966cGRAH6K493uUzPfdzoRJgMx2DRQWi6pvyBB5FvFy7584yg/CWtp20Fmx6kw1HDxcw+GawY96UESI=; 24:trrAIj3BWYeNCtNAky2UY8cBPm6448ZZ2R4tXMLouqh1i1Si+eoZdXkOkDuMJquVrgDa+kdv5/Wcon92xY583teB7tXcdbly5FM+HWfGuFM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1321; 7:pWilDsOvANSGw8M1Y16pDif0MIorxXMDLezxBt5UsvFnkf0cmYAA0ai0TRR+QaRnD7X2kask/wVn5tSnC8vwBheToJiGCK7OSDvJv4P9+4bZ1KRhemhOULPLGMcLSpc92Ii/L403MZFgDx1sU1Ecf0A4mz/RESOYPvpjfXfJ7gFWWPudmV5kqRKhqIA9LkcWJP5P5KeTfhZaVBbib4B5u7526YKLGH6/hbxPFRXozp/L5vn5j4rAhupXdbhZSdDF X-MS-Office365-Filtering-Correlation-Id: 2c031465-10ff-4750-b85b-08d5bbb3a89b X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2018 05:04:21.4484 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c031465-10ff-4750-b85b-08d5bbb3a89b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1321 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180516_220446_969556_7BD8E383 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. 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: linux-kernel@vger.kernel.org, Linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-clk@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 Thu, May 17, 2018 at 01:00:47PM +0800, Anson Huang wrote: > Disable those unnecessary clocks during kernel boot up to save power, > those modules clock should be managed by modules driver in runtime. > > Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Acked-by: Shawn Guo <shawnguo@kernel.org>
Quoting Anson Huang (2018-05-16 22:00:47) > Disable those unnecessary clocks during kernel boot up to save power, > those modules clock should be managed by modules driver in runtime. > > Signed-off-by: Anson Huang <Anson.Huang@nxp.com> > --- Applied to clk-next
diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index 0178ee2..10c771b 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -97,12 +97,7 @@ static int const clks_init_on[] __initconst = { IMX6SX_CLK_IPMUX1, IMX6SX_CLK_IPMUX2, IMX6SX_CLK_IPMUX3, IMX6SX_CLK_WAKEUP, IMX6SX_CLK_MMDC_P0_FAST, IMX6SX_CLK_MMDC_P0_IPG, IMX6SX_CLK_ROM, IMX6SX_CLK_ARM, IMX6SX_CLK_IPG, IMX6SX_CLK_OCRAM, - IMX6SX_CLK_PER2_MAIN, IMX6SX_CLK_PERCLK, IMX6SX_CLK_M4, - IMX6SX_CLK_QSPI1, IMX6SX_CLK_QSPI2, IMX6SX_CLK_UART_IPG, - IMX6SX_CLK_UART_SERIAL, IMX6SX_CLK_I2C3, IMX6SX_CLK_ECSPI5, - IMX6SX_CLK_CAN1_IPG, IMX6SX_CLK_CAN1_SERIAL, IMX6SX_CLK_CAN2_IPG, - IMX6SX_CLK_CAN2_SERIAL, IMX6SX_CLK_CANFD, IMX6SX_CLK_EPIT1, - IMX6SX_CLK_EPIT2, + IMX6SX_CLK_PER2_MAIN, IMX6SX_CLK_PERCLK, IMX6SX_CLK_TZASC1, }; static const struct clk_div_table clk_enet_ref_table[] = {
Disable those unnecessary clocks during kernel boot up to save power, those modules clock should be managed by modules driver in runtime. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> --- drivers/clk/imx/clk-imx6sx.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)