From patchwork Tue Nov 19 14:08:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 11252051 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A56B313A4 for ; Tue, 19 Nov 2019 14:09:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7365F20857 for ; Tue, 19 Nov 2019 14:09:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i0W58KDu"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="RjmkYfaE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7365F20857 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=kzVsFe0rujIlVPHleVxS1A9Y2vixmB/EGzGOdY/4Uys=; b=i0W58KDuPil4YQ NO+l1rEVQhu0Id3h8RaB40umd9uqgJmP17sESOnp9R6Mi/CvPe+BzbwhiuLyRJ1W8tGHqoe2mBXkF KbYQM5AigEZWKS8Muy63zma+ErV/p6UJutAxIPWqvttZKHCVHrfPe0xhkwP9qUgeCyiCrB47qfKP7 fIpMTO63XqnarCPHMpHoqxxHAevUiPDzZyId++R3/fxu8Rfjd0OOHaWiI/PTlC18l1E9Te7oE9zac XP1I6MsdjJ4U3TfIoAgYzUSHsy6tN+yYtCqNCTyMwh/sxM5bPjgkilZm88LB+7JcqYAbgejqmfgJT p4OFmqlBSYSM3BwB0vTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iX4Bk-0001JR-2U; Tue, 19 Nov 2019 14:09:04 +0000 Received: from mail-eopbgr10061.outbound.protection.outlook.com ([40.107.1.61] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iX4BV-00016E-DG for linux-arm-kernel@lists.infradead.org; Tue, 19 Nov 2019 14:08:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VfDwNtAlEW0KERsdbA9yVd3mLbcw/NOZ+s4l8YjQE8/RYPH59Sc8PgHXs7UckiEMjA0HKTL3eBeZNmml7TFKsSC1ATHokWn+H22223Vva7/BEvAd7XEBqO8A5gunzDtEa8iaVnshNCimjvJVgOLRGT1VuGc8X6s9u26gfLDaFrbOMpMm1ioiQWnNCYG45fkwXdS1FgPKoeVNR8bCL8zwEbOka2u1kDiOdWBb2Ed69oDeUPXPPGbFh6tDId1h+B4hgWxz0HmTgFbiaX39dTH1kSsYZwsk51+hOrsPvZ4NjbF3L68E0CbRIIjj4cCjPp/hUcaOf0FIypVvBCn0FzvVUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SqfRX6RY0z9UsmuVpXOfE2+tikp/DfpE2xdLYXBhwAg=; b=nLBqYsZ+AI+IuzokB3CZUGE4zBeP0PCUT4qjk7FXR7N3EZZ8L0kjPsrn4ppHCKlvdpIPIGVjH7egRMTMUxGeaz7UMsrKh/ZLEaeO0y91Sij3dHox67UiLXcvSLtFpB2dqsvfHbkEq6AeOmuGTysH7PN8mfmgp/C/7sfHb0Pe5OJSFqSPHUsTky6x6oddg6X9IX6X3lckB7hWlFPLqlQPE4kwP35GWqKX9nLn+5HyDr6RKINl1EDob4+3U4oDTZUjJ4xa3UPHd/8vqEeo62gY7f5TuKiuHM/wdyiwtyV9GjbSy4Xa7vR+hRrcBZ5hAOXT4Hg7RImOCBOOmstVz7LPGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SqfRX6RY0z9UsmuVpXOfE2+tikp/DfpE2xdLYXBhwAg=; b=RjmkYfaEr1hUODhS4BvJZD/6j9tt4BXnddK8ujokQIbSvb+2QS+LH/FM9KcuXFqkVMOYlDcj1J6d8R2YcXoSRzCJTBxQZHFWZfG4DsZdTnBeVhB8oOa8qatW2xETxJ0MIvFCtcHuxoXtn+9JPUl5ykT8tQqqig68y2iZkkDqyus= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB7044.eurprd04.prod.outlook.com (10.186.128.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Tue, 19 Nov 2019 14:08:38 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::fd44:1b14:587c:9fde]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::fd44:1b14:587c:9fde%7]) with mapi id 15.20.2451.029; Tue, 19 Nov 2019 14:08:38 +0000 From: Abel Vesa To: Aisheng Dong , Shawn Guo , Stephen Boyd , Sascha Hauer , Jacky Bai Subject: [PATCH 0/9] clk: imx: Trivial cleanups for clk_hw based API Thread-Topic: [PATCH 0/9] clk: imx: Trivial cleanups for clk_hw based API Thread-Index: AQHVnuLWT6CchFdcV0y5WK5bSM6Nyg== Date: Tue, 19 Nov 2019 14:08:38 +0000 Message-ID: <1574172496-12987-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: AM0PR04CA0026.eurprd04.prod.outlook.com (2603:10a6:208:122::39) To AM0PR04MB5779.eurprd04.prod.outlook.com (2603:10a6:208:131::23) x-originating-ip: [89.37.124.34] x-mailer: git-send-email 2.7.4 authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: bb83b43a-2109-4748-5e10-08d76cf9f92f x-ms-traffictypediagnostic: AM0PR04MB7044:|AM0PR04MB7044: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1091; x-forefront-prvs: 022649CC2C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(366004)(396003)(346002)(39860400002)(199004)(189003)(86362001)(66066001)(50226002)(386003)(486006)(102836004)(6506007)(26005)(66946007)(2906002)(6116002)(3846002)(6512007)(6486002)(4326008)(5660300002)(6436002)(7736002)(25786009)(14454004)(71200400001)(305945005)(8936002)(6636002)(478600001)(44832011)(476003)(71190400001)(2616005)(36756003)(256004)(316002)(66476007)(81156014)(81166006)(186003)(54906003)(110136005)(99286004)(8676002)(66446008)(52116002)(64756008)(66556008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB7044; 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: BCL:0; x-microsoft-antispam-message-info: t6Ipbn/Tq+kKaMw4nTF3OI/dJiDlyz9iXa8g9DQfOe7pUbeQ8FiudTGXN+vHBOQmefp5brgVv2GuChNNLkH0WhbWLnckAMS+phGpj3A61kWgcddSmr9cQTginwfP2xeRVK8DcJUySTYlkTbQD8gcTcFOZuolE1h5mvoOQMfzkRNrQSz79NjLKXEi84vmh8vgeMMBz3LX91Rd2zBe2f4Ki/JalCnNN0VsrE91MCNQnzEpjgZdvwbA49RGS6oX2z9ZUjJjpc0BsxcvknNnLaco+a39r/oT3c7R/W/7knih2BikUD3AdBPKZJKejQ/WT7GJ0H+xo4fyoZ2XiQ7kmYJ5xjJw+M28cYba+39hXb6m5yYCQsy+XV1dp/yx5ROAWpZcw5nKb660d7Tj/NX3jLuXKmdV8dctm6TklnOXE+igMpeRUoBtE7L0L4F/+t6rW0qD MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb83b43a-2109-4748-5e10-08d76cf9f92f X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2019 14:08:38.1031 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UYS709/n5yxZbFsZO8QAHquwgMG1aumTlBR3JrLSn6hdx3aj9bWISGQPOUDwfIulnxfmVhMqayPZgWefMHS5Fg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7044 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191119_060849_447355_C27BF5E7 X-CRM114-Status: GOOD ( 10.69 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.1.61 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , Abel Vesa , 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 These changes are cleanups for the clk_hw based API i.MX clock drivers switch longterm effort. As mentioned in the commit messages, the end goal here is to have all the i.MX drivers use clk_hw based API only. I've put these all in a single patchset since they do not impact in any way the expected behavior of the drivers and they are quite obvious trivial ones. More patches to follow for the older i.MX platforms but those might not be as harmless (and trivial) as these ones. Abel Vesa (9): clk: imx: Replace all the clk based helpers with macros clk: imx: pllv1: Switch to clk_hw based API clk: imx: pllv2: Switch to clk_hw based API clk: imx: imx7ulp composite: Rename to show is clk_hw based clk: imx: Rename sccg and frac pll register to suggest clk_hw clk: imx: Rename the imx_clk_pllv4 to imply it's clk_hw based clk: imx: Rename the imx_clk_pfdv2 to imply it's clk_hw based clk: imx: Rename the imx_clk_divider_gate to imply it's clk_hw based clk: imx7up: Rename the clks to hws drivers/clk/imx/clk-composite-7ulp.c | 2 +- drivers/clk/imx/clk-divider-gate.c | 2 +- drivers/clk/imx/clk-frac-pll.c | 7 +- drivers/clk/imx/clk-imx7ulp.c | 182 +++++++++++++++++------------------ drivers/clk/imx/clk-pfdv2.c | 2 +- drivers/clk/imx/clk-pllv1.c | 14 ++- drivers/clk/imx/clk-pllv2.c | 14 ++- drivers/clk/imx/clk-pllv4.c | 2 +- drivers/clk/imx/clk-sccg-pll.c | 4 +- drivers/clk/imx/clk.h | 69 +++++++------ 10 files changed, 153 insertions(+), 145 deletions(-) Reviewed-by: Peng Fan