linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] clk: shrink struct clk_fractional_divider
@ 2023-04-02  9:42 Christophe JAILLET
  2023-04-02  9:42 ` [PATCH v2 1/4] clk: Compute masks for fractional_divider clk when needed Christophe JAILLET
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Christophe JAILLET @ 2023-04-02  9:42 UTC (permalink / raw)
  To: mturquette, sboyd, abelvesa, peng.fan, shawnguo, s.hauer, kernel,
	festevam, linux-imx, heiko
  Cc: linux-clk, linux-arm-kernel, linux-rockchip, linux-kernel,
	kernel-janitors, Christophe JAILLET

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 <sboyd@kernel.org>

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-04-05 19:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-02  9:42 [PATCH v2 0/4] clk: shrink struct clk_fractional_divider Christophe JAILLET
2023-04-02  9:42 ` [PATCH v2 1/4] clk: Compute masks for fractional_divider clk when needed Christophe JAILLET
2023-04-02 14:28   ` Heiko Stübner
2023-04-02 14:29   ` Heiko Stübner
2023-04-05 19:13   ` Stephen Boyd
2023-04-02  9:42 ` [PATCH v2 2/4] clk: imx: Remove values for mmask and nmask in struct clk_fractional_divider Christophe JAILLET
2023-04-03 20:39   ` Abel Vesa
2023-04-05 19:12   ` Stephen Boyd
2023-04-02  9:42 ` [PATCH v2 3/4] clk: rockchip: " Christophe JAILLET
2023-04-02 14:35   ` Heiko Stübner
2023-04-05 19:12   ` Stephen Boyd
2023-04-02  9:42 ` [PATCH v2 4/4] clk: Remove mmask and nmask fields " Christophe JAILLET
2023-04-02 20:19   ` Heiko Stübner
2023-04-05 19:12   ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).