Skip to content

RFC mfd sharing support

Andres Salomon alsa-devel linux-arm-kernel linux-i2c linux-input linux-media linux-spi lkml lm-sensors netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest19 patches 45 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19mfd-core: unconditionally add mfd_cell to every platform_devicedrivers/mfd/mfd-core.c include/linux/mfd/core.h+13 -80 replies
2/19jz4740: mfd_cell is now implicitly available to driversdrivers/hwmon/jz4740-hwmon.c drivers/mfd/jz4740-adc.c drivers/power/jz4740-battery.c+2 -61 reply
3/19ab3550: mfd_cell is now implicitly available to driversarch/arm/mach-u300/i2c.c drivers/mfd/ab3550-core.c include/linux/mfd/abx500.h+0 -101 reply
4/19ab3100: mfd_cell is now implicitly available to driversdrivers/mfd/ab3100-core.c drivers/regulator/ab3100.c+3 -51 reply
5/19asic3: mfd_cell is now implicitly available to driversdrivers/mfd/asic3.c+0 -60 replies
6/19htc-pasic3: mfd_cell is now implicitly available to driversdrivers/mfd/htc-pasic3.c+0 -40 replies
7/19timberdale: mfd_cell is now implicitly available to driversdrivers/dma/timb_dma.c drivers/gpio/timbgpio.c drivers/i2c/busses/i2c-ocores.c +6 more+36 -6430 replies
8/19t7166xb: mfd_cell is now implicitly available to driversdrivers/mfd/t7l66xb.c+0 -90 replies
9/19wl1273: mfd_cell is now implicitly available to driversdrivers/media/radio/radio-wl1273.c drivers/mfd/wl1273-core.c sound/soc/codecs/wl1273.c+4 -60 replies
10/19sh_mobile_sdhi: mfd_cell is now implicitly available to driversdrivers/mfd/sh_mobile_sdhi.c+0 -20 replies
11/19tc6393xb: mfd_cell is now implicitly available to driversdrivers/mfd/tc6393xb.c+0 -180 replies
12/19twl4030: mfd_cell is now implicitly available to driversdrivers/input/misc/twl4030-vibra.c drivers/mfd/twl4030-codec.c sound/soc/codecs/twl4030.c+9 -89 replies
13/19tc6387xb: mfd_cell is now implicitly available to driversdrivers/mfd/tc6387xb.c+0 -50 replies
14/19janz: mfd_cell is now implicitly available to driversdrivers/gpio/janz-ttl.c drivers/mfd/janz-cmodio.c drivers/net/can/janz-ican3.c+3 -40 replies
15/19mc13xxx: mfd_cell is now implicitly available to driversarch/arm/mach-imx/mach-mx27_3ds.c arch/arm/mach-imx/mach-pcm038.c arch/arm/mach-mx3/mach-mx31_3ds.c +7 more+44 -333 replies
16/19mfd-core: drop platform_data/data_size from core mfd_cell structinclude/linux/mfd/core.h+0 -40 replies
17/19mfd-core: add refcounting support to mfd_cellsdrivers/mfd/mfd-core.c include/linux/mfd/core.h+60 -50 replies
18/19mfd-core: add platform_device sharing support for mfddrivers/mfd/mfd-core.c include/linux/mfd/core.h+124 -00 replies
19/19cs5535-mfd: add sharing for acpi/pms cellsarch/x86/platform/olpc/olpc-xo1.c drivers/mfd/cs5535-mfd.c+57 -220 replies

Reviews trailers per patch

2 of 19 patches have a Reviewed-by or Acked-by.

PatchJean DelvareLinus Walleij
1/19
2/19A-b
3/19
4/19A-b
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

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

Read the v1 thread

Cover letter [RFC] [PATCH 0/19] mfd sharing support

This patchset sets up support for sharing of MFD cells across multiple drivers. This is something we'd like for OLPC power management, but plenty of other drivers do similar things. Every driver seems to have its own way of accomplishing the task, and rather than go that route, I'd rather have a common way to do it in mfd-core.

The parts of this patch series are somewhat separate, so that one can pick and choose. The first group (patches 1-16) makes mfd cells always available (and adjusts any drivers that are using platform_data to use driver_data instead) to mfd clients. The second group (patch 17) adds optional wrappers for the mfd_cell's enable/disable hooks to handle reference counting.

The third group (patch 18) adds support for shared platform_devices, and the last one (patch 19) adapts the cs5535-mfd/olpc-xo1 drivers to make use of the sharing code. These last two groups still need a bit of work, but I was hoping to get feedback on the whole set.