Skip to content

regmap: Add interface for checking if a register is cached

Mark Brown alsa-devel lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20230716-regmap-cache-check-6f6939f41ed5

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3regmap: Let users check if a register is cacheddrivers/base/regmap/regcache.c include/linux/regmap.h+24 -00 replies
2/3regmap: Provide test for regcache_reg_present()drivers/base/regmap/regmap-kunit.c+40 -00 replies
3/3ALSA: hda: Use regcache_reg_cached() rather than open codingsound/hda/hdac_regmap.c+3 -60 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTakashi Iwai
SeriesR-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] regmap: Add interface for checking if a register is cached

HDA has a use case for checking if a register is present in the cache which it awkwardly open codes with use of _cache_only() and a read, provide a direct API for this.

---
Mark Brown (3):
regmap: Let users check if a register is cached
regmap: Provide test for regcache_reg_present()
ALSA: hda: Use regcache_reg_cached() rather than open coding

 drivers/base/regmap/regcache.c     | 23 ++++++++++++++++++++++
 drivers/base/regmap/regmap-kunit.c | 40 ++++++++++++++++++++++++++++++++++++++
 include/linux/regmap.h             |  1 +
 sound/hda/hdac_regmap.c            |  9 +++------
 4 files changed, 67 insertions(+), 6 deletions(-)

---
base-commit: 3953d5c79c21defa716624a8623c4157c0f2fee0
change-id: 20230716-regmap-cache-check-6f6939f41ed5

Best regards,

Signature · 1 line
Mark Brown <[email protected]>