Skip to content

regmap-irq cleanups and refactoring

Aidan MacDonald linux-samsung-soc lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 3 repliesIn review
  2. v212 patches 11 repliesSuperseded
  3. v149 patches 24 repliesSuperseded

Changes in v3 from the cover letter

* Fix bug in patch 11/12 reported by Marek Szyprowski
https://lore.kernel.org/lkml/[email protected]/

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12regmap-irq: Convert bool bitfields to unsigned intdrivers/base/regmap/regmap-irq.c include/linux/regmap.h+14 -140 replies
2/12regmap-irq: Remove unused type_reg_stride fielddrivers/base/regmap/regmap-irq.c include/linux/regmap.h+0 -90 replies
3/12regmap-irq: Cleanup sizeof(...) use in memory allocationdrivers/base/regmap/regmap-irq.c+8 -80 replies
4/12regmap-irq: Remove an unnecessary restriction on type_in_maskdrivers/base/regmap/regmap-irq.c include/linux/regmap.h+13 -140 replies
5/12regmap-irq: Remove inappropriate uses of regmap_irq_update_bits()drivers/base/regmap/regmap-irq.c+6 -60 replies
6/12regmap-irq: Remove mask_writeonly and regmap_irq_update_bits()drivers/base/regmap/regmap-irq.c include/linux/regmap.h+7 -190 replies
7/12regmap-irq: Refactor checks for status bulk read supportdrivers/base/regmap/regmap-irq.c+10 -40 replies
8/12regmap-irq: Introduce config registers for irq typesdrivers/base/regmap/regmap-irq.c include/linux/regmap.h+122 -50 replies
9/12regmap-irq: Deprecate type registers and virtual registersdrivers/base/regmap/regmap-irq.c include/linux/regmap.h+18 -60 replies
10/12regmap-irq: Fix inverted handling of unmask registersdrivers/base/regmap/regmap-irq.c include/linux/regmap.h+84 -480 replies
11/12regmap-irq: Add get_irq_reg() callbackdrivers/base/regmap/regmap-irq.c include/linux/regmap.h+93 -480 replies
12/12regmap-irq: Deprecate the not_fixed_stride flagdrivers/base/regmap/regmap-irq.c include/linux/regmap.h+6 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/12] regmap-irq cleanups and refactoring

This series is an attempt at cleaning up the regmap-irq API in order to simplify things and consolidate existing features, while at the same time generalizing it to support a wider range of hardware.

There is a new system for IRQ type configuration, some tweaks to unmask registers so they're more intuitive and useful, and a new callback for calculating register addresses. There's also a few minor code cleanups in here.

Several existing features have been marked deprecated. Warnings will be issued for any drivers that use deprecated features, but they'll otherwise continue to function normally.

One important caveat: not all of these changes are tested beyond compile testing, since I don't have hardware to exercise all of the features.

v3 changelog

* Fix bug in patch 11/12 reported by Marek Szyprowski
https://lore.kernel.org/lkml/[email protected]/

v2 changelog

* Drop driver patches, these will be sent as separate series to the appropriate subsystem maintainers.
* Drop patches that remove deprecated features, that should be done in a separate series.
* Various fixups to address Andy Shevchenko's v1 review comments.
* Drop patches that changed the behavior of mask_writeonly; instead just remove the flag.

Aidan MacDonald (12):
regmap-irq: Convert bool bitfields to unsigned int
regmap-irq: Remove unused type_reg_stride field
regmap-irq: Cleanup sizeof(...) use in memory allocation
regmap-irq: Remove an unnecessary restriction on type_in_mask
regmap-irq: Remove inappropriate uses of regmap_irq_update_bits()
regmap-irq: Remove mask_writeonly and regmap_irq_update_bits()
regmap-irq: Refactor checks for status bulk read support
regmap-irq: Introduce config registers for irq types
regmap-irq: Deprecate type registers and virtual registers
regmap-irq: Fix inverted handling of unmask registers
regmap-irq: Add get_irq_reg() callback
regmap-irq: Deprecate the not_fixed_stride flag

 drivers/base/regmap/regmap-irq.c | 432 +++++++++++++++++++++----------
 include/linux/regmap.h           | 104 +++++---
 2 files changed, 367 insertions(+), 169 deletions(-)
Signature · 1 line
2.35.1