Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3205601rwl; Sun, 2 Apr 2023 02:43:46 -0700 (PDT) X-Google-Smtp-Source: AKy350bWPgnZpUjVV/XLEa2TMjkaXL6U88BD8/JCnu75fl09xJiUQhNPqxfm92gapfrw92VYgnKX X-Received: by 2002:a17:906:2759:b0:931:ad32:79ed with SMTP id a25-20020a170906275900b00931ad3279edmr30161736ejd.12.1680428626720; Sun, 02 Apr 2023 02:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680428626; cv=none; d=google.com; s=arc-20160816; b=B88pgLXRbmZOq4G1MAJovuI1HHy8yMIBHLqJE9C+KapJOSQH1PCc9LT6h3uIUT+9v0 XrpwBdM9ZJy+5ez2e5YhNtgCp3/0oCSsyhpEXaEAZhiLyIu7yyLBw0JlYVTt94cX8qDg SfbkAGfZRNAYzblDHQ3ss4ruHENZT1c90XJRmx66cn7dOCZGo8U1CU3qocCA2YvKKXOH 6pLAfXas419Jyjiqkd5c6iNUNzVTok6tMf0EPY0ijOVawd9C6//jzq5cT+z4Pi0SNwbS BnHeTJZoQZe4vV50MEMpsNOODNjx/qq1DHpohJG5fZ7vNYH/MN969WSUU/38ceL0ZRy1 rylQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ss15-20020a170907038f00b009301df0b15asi3107637ejb.62.2023.04.02.02.43.22; Sun, 02 Apr 2023 02:43:46 -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 S230113AbjDBJmU (ORCPT + 99 others); Sun, 2 Apr 2023 05:42:20 -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 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.34.1