Skip to content

regcache: Split out ->populate() and use it

Andy Shevchenko lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 7 repliesIn review
  2. v25 patches 6 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- added missing space (Mark)
- collected tags (Sander)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5regcache: Add ->populate() callback to separate from ->init()drivers/base/regmap/internal.h drivers/base/regmap/regcache.c+17 -02 replies
2/5regcache: rbtree: Split ->populate() from ->init()drivers/base/regmap/regcache-rbtree.c+17 -141 reply
3/5regcache: flat: Remove unneeded check and error message for -ENOMEMdrivers/base/regmap/regcache-flat.c+1 -91 reply
4/5regcache: flat: Split ->populate() from ->init()drivers/base/regmap/regcache-flat.c+18 -91 reply
5/5regcache: maple: Split ->populate() from ->init()drivers/base/regmap/regcache-maple.c+21 -261 reply

Reviews trailers per patch

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

PatchSander VanheuleCharles Keepax
1/5R-b
2/5R-b
3/5A-b R-b
4/5R-b
5/5R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/5] regcache: Split out ->populate() and use it

This is a refactoring series to decouple cache initialisation and population. On its own it has no functional impact but will be used in the further development. Besides that I found this split useful on its own (from the design perspective). That's why I decided to send it out as is separately from a bigger (and ongoing) work.

Changelog v3:
- added missing space (Mark)
- collected tags (Sander)

Changelog v2:
v2: https://lore.kernel.org/r/[email protected]
- rebased on top of the recent regcache changes (Mark)
- a new clean up patch induced by the previous

v1: https://lore.kernel.org/r/[email protected]

Andy Shevchenko (5):
regcache: Add ->populate() callback to separate from ->init()
regcache: rbtree: Split ->populate() from ->init()
regcache: flat: Remove unneeded check and error message for -ENOMEM
regcache: flat: Split ->populate() from ->init()
regcache: maple: Split ->populate() from ->init()

 drivers/base/regmap/internal.h        |  1 +
 drivers/base/regmap/regcache-flat.c   | 37 +++++++++++----------
 drivers/base/regmap/regcache-maple.c  | 47 ++++++++++++---------------
 drivers/base/regmap/regcache-rbtree.c | 31 ++++++++++--------
 drivers/base/regmap/regcache.c        | 16 +++++++++
 5 files changed, 74 insertions(+), 58 deletions(-)
Signature · 1 line
2.50.1