Skip to content

clk: shrink struct clk_fractional_divider

Christophe JAILLET kernel-janitors linux-arm-kernel linux-clk linux-rockchip lkml 1 version Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 9 repliesApplied

v1 from the cover letter

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4clk: Compute masks for fractional_divider clk when needed.drivers/clk/clk-fractional-divider.c+11 -53 replies
2/4clk: imx: Remove values for mmask and nmask in struct clk_fractional_dividerdrivers/clk/imx/clk-composite-7ulp.c+0 -42 replies
3/4clk: rockchip: Remove values for mmask and nmask in struct clk_fractional_dividerdrivers/clk/rockchip/clk.c+0 -22 replies
4/4clk: Remove mmask and nmask fields in struct clk_fractional_dividerinclude/linux/clk-provider.h+0 -22 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchHeiko StuebnerAbel Vesa
1/4R-b R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] clk: shrink struct clk_fractional_divider

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.

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(-)
Signature · 1 line
2.34.1