Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1049504rwl; Wed, 29 Mar 2023 11:53:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YNRkbtQU+RsVO0Q2UKyx9Tj2eCpxg2ahQqlIqKddSNcttULONRCbBKe22ho8dDvgS+jh1s X-Received: by 2002:a17:907:1c09:b0:930:f953:9608 with SMTP id nc9-20020a1709071c0900b00930f9539608mr29299603ejc.0.1680116031295; Wed, 29 Mar 2023 11:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680116031; cv=none; d=google.com; s=arc-20160816; b=W3T0XI9zDhJulBJp5YvcHRCyLWpExvNAlwdyUXiohTFX5RxbHnmPwTJ8ybGJOQddYF dzXha7MlMqQ3zaKniUvr4jl5y/EeBL99eUIoWikhBDbSDqbvW/+eUxgpxJYuu179x4Cj KuqLggWqEEbi34cI3HaL+0wTrg+ppTSxjQGipOaVCc5GecjRd2oZwJyjjzKHP/m9abKS dglfjpHkEJeOZjRUSGdDEEhKu8T8RtLevCoERJVsL7P9KZVHVwjl2HnJeLSB8HsJpGb1 UXG5pWJtd3gq9967j9TFBp70LBC0+2YDJDi9bt688wkpn+M+Y3ZmaWWAJBnzlxoYs9G/ aSug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=ZkGunFvqZMpMm3jeaRLW08/Dpr0iGWboJqgaLNL1hWI=; b=f18t1ygnpFteyoy6ACl9H56QRZRfiB5yjcLd9qw3kW63oopcTFdyKhxgAgeXkQSAZH JfEE4fxRLyVqVgqMjYa9sObwN5oqDy6fLu8GO2ObhSe4WGoPPKiQv6QosKmjY7NPgmlw bqbVQy04ckZ0OUPQ5XCreMR8KCEZoT6/jHUUEQUHHmRR/UYCyVPnjaZJXx40WLCTHjLs yBxhQlkaph5HE8npOhl0POpYybbkkEPUD0FFVkeaASJz6Qk69VcHkmE9ZHF5oDjNUBvF eWDMB/Dhb1230Dch2LUnO3vRMVLBCrO1/EA/hzO8pre+Mo6MmSi4x2aXpRZfOXeqj4QQ Hv3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IivxkDO5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a17090640c700b008d872b541besi31237704ejk.882.2023.03.29.11.53.26; Wed, 29 Mar 2023 11:53:51 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IivxkDO5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbjC2Sql (ORCPT + 99 others); Wed, 29 Mar 2023 14:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjC2Sqk (ORCPT ); Wed, 29 Mar 2023 14:46:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9074830ED; Wed, 29 Mar 2023 11:46:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2D67A61D7A; Wed, 29 Mar 2023 18:46:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85928C433EF; Wed, 29 Mar 2023 18:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680115598; bh=l/ZQEIg0r3dnpJOqbbYfQM5WM0p8Fh/Vcz3IqMRkfnE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=IivxkDO5tDlyb5I+0Frr1Ndni142zhBGjvQtkpL2SMsZZqAX20gkL1BrV2/1TFN+o HAzSfLxfXoQuHr4wcmsgEBr/IvJxTSDPgU8aGOo22n4+Vnotkddw1POWZb5szug+Pk YFWru+jEJtWYkjQefllaw9mTdf+FWsUPOR47TQI6V+EHlkkjLXGPaZz+KN2+UFpPxZ KBtFXl9FkEyH2B+O2anstXVYgpLgABSYC9/DIH+b8o4WcJiaFAYeAo7deRvYIudPPK lxDDvzw8Vd0Yv1hGkyjjAHqACrnf40uwESAgt3tSm/IB2OkTqck9fSvp1biNnRCHLi TEBv0eYMXMyMA== Message-ID: <2e74c4c93f4bcc6a7af0c3ef5a8edd23.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: Subject: Re: [PATCH] clk: Reorder fields in 'struct clk_fractional_divider' From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-clk@vger.kernel.org To: Christophe JAILLET , Michael Turquette Date: Wed, 29 Mar 2023 11:46:36 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 Quoting Christophe JAILLET (2023-02-17 07:55:55) > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h > index cf1adfeaf257..8cec844f5dde 100644 > --- a/include/linux/clk-provider.h > +++ b/include/linux/clk-provider.h > @@ -1134,13 +1134,13 @@ struct clk_hw *clk_hw_register_fixed_factor_paren= t_hw(struct device *dev, > struct clk_fractional_divider { > struct clk_hw hw; > void __iomem *reg; > + u8 flags; > u8 mshift; > u8 mwidth; > u32 mmask; This member ... > u8 nshift; > u8 nwidth; > u32 nmask; and this member can be calculated. Doing that would save more bytes when combined with this patch. Can you make this into a patch series? > - u8 flags; > void (*approximation)(struct clk_hw *hw, > unsigned long rate, unsigned long *parent= _rate, > unsigned long *m, unsigned long *n);