Skip to content

bitmap: get rid of bitmap_remap() and bitmap_biremap() uses

Andy Shevchenko linux-arm-kernel linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib/test_bitmap: Excape space symbols when printing input stringlib/test_bitmap.c+1 -12 replies
2/5lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpersinclude/linux/bitmap.h lib/bitmap.c lib/test_bitmap.c+102 -06 replies
3/5gpio: xilinx: Switch to use new bitmap_scatter() helperdrivers/gpio/gpio-xilinx.c+2 -20 replies
4/5gpio: xilinx: Replace bitmap_bitremap() callsdrivers/gpio/gpio-xilinx.c+2 -73 replies
5/5gpiolib: cdev: Utilize more bitmap APIsdrivers/gpio/gpiolib-cdev.c+36 -4311 replies

Reviews trailers per patch

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

PatchLinus WalleijKent Gibson
SeriesA-b
1/5
2/5
3/5
4/5
5/5T-b

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 v1 0/5] bitmap: get rid of bitmap_remap() and bitmap_biremap() uses

As Rasmus suggested [1], the bit remapping APIs should be local to NUMA. However, they are being in use outside of that for a while. To make above happen, introduces simplified APIs that can be used otherwise.

It seems we might have yet another user of the above mentioned APIs.

The last patch has not been tested anyhow (except compilation, so all testing and comments are welcome).

The idea is to get an immutable tag (via my tree) that can be pulled by bitmap and GPIO trees on the need (while usually I send PR to the GPIO subsystem).

Andy Shevchenko (5):
lib/test_bitmap: Excape space symbols when printing input string lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers
gpio: xilinx: Switch to use new bitmap_scatter() helper
gpio: xilinx: Replace bitmap_bitremap() calls
gpiolib: cdev: Utilize more bitmap APIs

 drivers/gpio/gpio-xilinx.c  | 13 ++----
 drivers/gpio/gpiolib-cdev.c | 79 +++++++++++++++++--------------------
 include/linux/bitmap.h      |  9 +++++
 lib/bitmap.c                | 70 ++++++++++++++++++++++++++++++++
 lib/test_bitmap.c           | 25 +++++++++++-
 5 files changed, 143 insertions(+), 53 deletions(-)
Signature · 1 line
2.40.0.1.gaa8946217a0b