From patchwork Sun Apr 2 09:42:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 7593 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1655013vqo; Sun, 2 Apr 2023 02:44:09 -0700 (PDT) X-Google-Smtp-Source: AKy350bRuYZT8hJe7aKiVv+j0eC0BzjYtI6WQ49Gg4BYF7txankpxxhYGg1aX/KXvyjaOm/oWFFi X-Received: by 2002:aa7:cd85:0:b0:4fb:9fd4:6ac5 with SMTP id x5-20020aa7cd85000000b004fb9fd46ac5mr29793564edv.14.1680428649514; Sun, 02 Apr 2023 02:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680428649; cv=none; d=google.com; s=arc-20160816; b=GynVDf4Vb3bV9dBAMDK7ddRqWPzbXgihGIqst5G9NGDu0ApSVJvFSuPqQgcA42qVYg vfyzgNUwX4H2471a3/ShOXuI5VhwoNb8Sog6a2gHspiqLndtnp+nT9Fb6XATZOkQVvnn GTXzL/vm4XqW0OWVphqZajmxKfrBDwRa6dRMjmyPzfWxm5AE27FP7lFF4fYsi31hZ/Rr KnxuDT4V90AH+a3I1W/ucuWo6k23wLR0oUedkYqGtHylZAsnjwbphSziBId2gg4bWQJ7 wWEp+NE5qcErWq3B9OQ2/b3OBe/x42GNJaGuyh1x83dyx4M4puJnotlvMbqCMs0KSoWv iTYA== 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 :message-id:date:subject:cc:to:from; bh=iBzcBfhKlDEsAaV7tMwpgdD+g2KAUM8m7e0+S8tpeVQ=; b=jIdX5AP1hlS8hPqb+cljVQ+LTiQowrPxvTD8Cigw2U+4JLhVKKqpoDGoKi+1azjOmA DhkUVAo2g31OJv02eQ++IwDDcsvaNw+7/aQohGpWWGUFXmAxPu+JaJDKIwaqwGrVJcaa Mh06TBOJxIawhtlD5eT1A2k1u2bf9TDZr69wEWg/gg6ES7CD7cheqGZq4yrPHfbYGVlO 8Bdesbm6QOQUBM5wRWO/e/rUYMj/IxEo0Mju0VQ+2qyFyHIF3I86eS+eVZSWqXSaJEhG 7TqRsV9Fv6OXjru6Lz1rkjR63180qDXdw3EaQiYCltkX3vc7vRi8OHQ2CtgjGWvMDvM6 XllA== 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 n13-20020a05640204cd00b00501e4be89e6si5467939edw.280.2023.04.02.02.43.46; Sun, 02 Apr 2023 02:44:09 -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 S229437AbjDBJmV (ORCPT + 99 others); Sun, 2 Apr 2023 05:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjDBJmT (ORCPT ); Sun, 2 Apr 2023 05:42:19 -0400 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4BC0E3BC for ; Sun, 2 Apr 2023 02:42:17 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id iuDzpwm4hwFKBiuE0peDgu; Sun, 02 Apr 2023 11:42:15 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Apr 2023 11:42:15 +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 0/4] clk: shrink struct clk_fractional_divider Date: Sun, 2 Apr 2023 11:42:03 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 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?1762057151992586617?= X-GMAIL-MSGID: =?utf-8?q?1762057151992586617?= This serie removes 2 fields from struct clk_fractional_divider and shrinks it from 72 to 56 bytes. Instead of been pre-computed, thse fields are now computed when needed. The first patch makes the [mn]mask fields useless. Patch 2 and 3 make some needed modification in 2 drivers that where using these fields. Finally, patch 4 removes the now used fields. This is a another approach of what was proposed in v1. (i.e. just moving a field to shrink from 72 ro 64 bytes) Compared to v1, all 4 patches are new. Suggested-by: Stephen Boyd v1: https://lore.kernel.org/linux-kernel/d1874eb8848d5f97f87337011188640a1463a666.1676649335.git.christophe.jaillet@wanadoo.fr/ Christophe JAILLET (4): clk: Compute masks for fractional_divider clk when needed. clk: imx: Remove values for mmask and nmask in struct clk_fractional_divider clk: rockchip: Remove values for mmask and nmask in struct clk_fractional_divider clk: Remove mmask and nmask fields in struct clk_fractional_divider drivers/clk/clk-fractional-divider.c | 16 +++++++++++----- drivers/clk/imx/clk-composite-7ulp.c | 4 ---- drivers/clk/rockchip/clk.c | 2 -- include/linux/clk-provider.h | 2 -- 4 files changed, 11 insertions(+), 13 deletions(-)