From patchwork Sun Apr 2 09:42:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 78208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1655200vqo; Sun, 2 Apr 2023 02:44:48 -0700 (PDT) X-Google-Smtp-Source: AKy350bHuTarI1SVgHbP6/Xn005TTJrwvyRk8xq2TSyIA5oF62DJiVpwkRVv6OvJ7DmY1X2toO7K X-Received: by 2002:a17:907:6e1c:b0:947:bd54:cb8e with SMTP id sd28-20020a1709076e1c00b00947bd54cb8emr7887995ejc.10.1680428688262; Sun, 02 Apr 2023 02:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680428688; cv=none; d=google.com; s=arc-20160816; b=ltXNzfCybX5C6cxnV66Ntm1hm8yoLiGZZT938tJhDWVfFduAjBZZ+Xdh/QAPna4nZs DiAJn1JlQANV7TgGg+zARyYMYivsbio5rN6EJzuoGIaSzSFflWx7qr4KJiYsjldF55Sk USydVFHJHSg920hIvYp0OIgvWJMPv67IjN/w522GCSnvj1Zs7zsK2ng2E8aoM9n34y0e UhObu7pbl6pXLW8o0fo8Qhlxm0ryYVUpvSJzEHHRkKPDUMm41Fg3rvXnct4W99/og+mM dpVRmxDEzQBH8W5C9jTeMWPec2rSAz1rJ80vUU6l0lgHbzWt6qbLW/WTUTnvg9wtC9ym XFfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KEQFnAMSOELF+l+fh+rk1czw9PzBB3OxyXt+OHLU+JY=; b=ZUUw29jfQ/FP2S/kLNBR4wWPV2GQps8+fmfYnpMsJNqoRVhhvI6sHe7zN3Ht74qsj2 Gw6+apk7o4QSEmnuZ/iRrZb4l860wquYuub+my66sIqe/8e/IsIKxKCSSCiG3CKTQmyH Q85bcRu5n87OCFb3FoCvujQInI7qpZYEWoLuXSHLuTpfsOVDmVi6PGeCLGpF0I/9eqbb VmfU6r7XjjtX8QPv+4Egs+xExEZEhol33gJ8da3FdLVuiSz7eHSdTpozBh3XHBnr+gUf d0lw7oF/iSukSJttf0qS36tpcvLkfrciwzPE4Ci4Elu6qgyyxgCxfEbkwFbcwD/VpM0p 3foQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020a1709067c9300b0092971a9d5e6si2634141ejo.966.2023.04.02.02.44.24; Sun, 02 Apr 2023 02:44:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbjDBJme (ORCPT + 99 others); Sun, 2 Apr 2023 05:42:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbjDBJm3 (ORCPT ); Sun, 2 Apr 2023 05:42:29 -0400 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E741D1BF76 for ; Sun, 2 Apr 2023 02:42:26 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id iuDzpwm4hwFKBiuEDpeDiY; Sun, 02 Apr 2023 11:42:25 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Apr 2023 11:42:25 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: mturquette@baylibre.com, sboyd@kernel.org, abelvesa@kernel.org, peng.fan@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, heiko@sntech.de Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH v2 2/4] clk: imx: Remove values for mmask and nmask in struct clk_fractional_divider Date: Sun, 2 Apr 2023 11:42:05 +0200 Message-Id: <187a2266c3a034a593a151d6e5e6b21118043b5d.1680423909.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762057192315501450?= X-GMAIL-MSGID: =?utf-8?q?1762057192315501450?= Now that fractional_divider clk computes mmask and nmask when needed, there is no more need to provide them explicitly anymore. Signed-off-by: Christophe JAILLET Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-composite-7ulp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-composite-7ulp.c b/drivers/clk/imx/clk-composite-7ulp.c index 4eedd45dbaa8..e208ddc51133 100644 --- a/drivers/clk/imx/clk-composite-7ulp.c +++ b/drivers/clk/imx/clk-composite-7ulp.c @@ -19,10 +19,8 @@ #define PCG_CGC_SHIFT 30 #define PCG_FRAC_SHIFT 3 #define PCG_FRAC_WIDTH 1 -#define PCG_FRAC_MASK BIT(3) #define PCG_PCD_SHIFT 0 #define PCG_PCD_WIDTH 3 -#define PCG_PCD_MASK 0x7 #define SW_RST BIT(28) @@ -102,10 +100,8 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name, fd->reg = reg; fd->mshift = PCG_FRAC_SHIFT; fd->mwidth = PCG_FRAC_WIDTH; - fd->mmask = PCG_FRAC_MASK; fd->nshift = PCG_PCD_SHIFT; fd->nwidth = PCG_PCD_WIDTH; - fd->nmask = PCG_PCD_MASK; fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED; if (has_swrst) fd->lock = &imx_ccm_lock;