From patchwork Sun Apr 2 09:42:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 78210 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1656931vqo; Sun, 2 Apr 2023 02:51:18 -0700 (PDT) X-Google-Smtp-Source: AK7set9E+CUp1uO8dLVA/+QAEaqFjEay9eeG99IoJYrTsXVn7cGdpxzunq0otk80yVsWKCXh+wLn X-Received: by 2002:a05:6a20:7a98:b0:d4:220d:a7e7 with SMTP id u24-20020a056a207a9800b000d4220da7e7mr29028403pzh.46.1680429078473; Sun, 02 Apr 2023 02:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680429078; cv=none; d=google.com; s=arc-20160816; b=p2lgFXqD2261MP9Gro8+JEZonOcWQnFwBRd9lvRLGmUD5vpKogOYJ4i8zTEPQ2NdCx ZUFVam7Lk0sOX+L+ebB9V1vMQEi79001GR0hpUQUXIJftsfXg8h/oOnJs3KPvSh6jR/e UwtOum20LmEgGQq0UL2J7c9Tu5W/UMfnk3KjZ/YmCyxqfnG8hXB2QElD6XqQ6F0YTMlz 4iLkAcssbwRcJxgTkSPqmf+U4tMkpkHgnHfV8EsgwKazLkxnlCFo6ccgSU2fqt2WfcYS crTytNllB/9STOaWkUKG6YTVdT2pwJjk6Ehj+cevibfWiaWH3tOagWegLzQ3IZC9KoLk rkhg== 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=kEQHhDl5sDyKebY4a4Q61TLaJ7KzP6TXiBSUJ7OXxt8=; b=ywNmZn9q+KZIPamB+D9KqS57sYgAfv2/hYAWiRS75iJiJUyD5NE9jOdSrlvqfJtKod zlkgStCX6qSQT6/VEG62vGFnt39x4baGmZed/y6DjbvnxOp6HAYrGKveLrSRrfs3uX7m sUwjh1KRewbnu+fz8ACNwxRBs6cLq68mbsq797kKOWHD6isWrxLlPDRg1nAr4T7PvLGy Q/XvA7s5eIWwDoTOxoTjpxeacRoNWKQqFK2DTYHsB7qxCcUs2eslRD5B8XODadpDai1B X0vCz4x9vu9zpdC5qCievuvOCaDoCcwjb2+9HKbdCjpZv7llf1PWeI0CimO+oXsYY8/U GcKw== 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 k29-20020aa79d1d000000b00623d0b5b8c4si6297395pfp.115.2023.04.02.02.51.05; Sun, 02 Apr 2023 02:51:18 -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 S230347AbjDBJma (ORCPT + 99 others); Sun, 2 Apr 2023 05:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230295AbjDBJm3 (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 190601BF72 for ; Sun, 2 Apr 2023 02:42:28 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id iuDzpwm4hwFKBiuEEpeDj1; Sun, 02 Apr 2023 11:42:26 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Apr 2023 11:42:26 +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 3/4] clk: rockchip: Remove values for mmask and nmask in struct clk_fractional_divider Date: Sun, 2 Apr 2023 11:42:06 +0200 Message-Id: <58e1950566e40e2fbb31004baee57a164ca6a390.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?1762057600916429459?= X-GMAIL-MSGID: =?utf-8?q?1762057600916429459?= 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: Heiko Stuebner --- drivers/clk/rockchip/clk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index a8646794575a..4059d9365ae6 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -244,10 +244,8 @@ static struct clk *rockchip_clk_register_frac_branch( div->reg = base + muxdiv_offset; div->mshift = 16; div->mwidth = 16; - div->mmask = GENMASK(div->mwidth - 1, 0) << div->mshift; div->nshift = 0; div->nwidth = 16; - div->nmask = GENMASK(div->nwidth - 1, 0) << div->nshift; div->lock = lock; div->approximation = rockchip_fractional_approximation; div_ops = &clk_fractional_divider_ops;