All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] mfd: twl: improvements and new regulator driver
@ 2016-11-26 18:13 ` Nicolae Rosia
  0 siblings, 0 replies; 38+ messages in thread
From: Nicolae Rosia @ 2016-11-26 18:13 UTC (permalink / raw)
  To: Lee Jones, Mark Brown, Rob Herring, Mark Rutland, Tony Lindgren
  Cc: Liam Girdwood, Paul Gortmaker, Graeme Gregory, Baruch Siach,
	linux-omap, linux-arm-kernel, linux-kernel, devicetree,
	Nicolae Rosia

Hello,

The current TWL MFD driver has a number of problems which are
very well described by Russell King [0].
This series attemps to fix this by making the driver's private
structure available to child nodes.
A regulator driver for TWL6032 which makes use of the private
drvdata is introduced.
A driver for TWL6032 PMIC already exists in mainline,
twl-regulator, but it has the following drawbacks:
* has no mainline users
* it does not follow the recommended regulators binding since
it uses a compatible string for every regulator;
* it is broken
** the features flag is not set, hence the TWL6032
support is broken since it depends on TWL6032_SUBCLASS flag;
** even with that fixed, bit manipulations are wrong

If this receives positive feedback, I could convert all TWL drivers
to use drvdata, then get rid of the exported symbols.

[0] https://www.spinics.net/lists/linux-omap/msg133387.html

Nicolae Rosia (5):
  mfd: twl-core: make driver DT only
  mfd: twl: remove useless header
  mfd: twl: move structure definitions to a public header
  regulator: Add support for TI TWL6032
  mfd: twl: use mfd_add_devices for TWL6032 regulator

 .../bindings/regulator/twl6032-regulator.txt       | 109 ++++
 drivers/mfd/Kconfig                                |   1 +
 drivers/mfd/twl-core.c                             | 444 ++--------------
 drivers/mfd/twl-core.h                             |  10 -
 drivers/mfd/twl4030-irq.c                          |   2 -
 drivers/mfd/twl6030-irq.c                          |   2 -
 drivers/regulator/Kconfig                          |   7 +
 drivers/regulator/Makefile                         |   1 +
 drivers/regulator/twl6032-regulator.c              | 582 +++++++++++++++++++++
 include/linux/mfd/twl-core.h                       |  35 ++
 10 files changed, 768 insertions(+), 425 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/regulator/twl6032-regulator.txt
 delete mode 100644 drivers/mfd/twl-core.h
 create mode 100644 drivers/regulator/twl6032-regulator.c
 create mode 100644 include/linux/mfd/twl-core.h

-- 
2.9.3

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2017-01-03 15:46 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-26 18:13 [PATCH 0/5] mfd: twl: improvements and new regulator driver Nicolae Rosia
2016-11-26 18:13 ` Nicolae Rosia
2016-11-26 18:13 ` Nicolae Rosia
2016-11-26 18:13 ` [PATCH 1/5] mfd: twl-core: make driver DT only Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2017-01-03 15:00   ` Lee Jones
2017-01-03 15:00     ` Lee Jones
2017-01-03 15:00     ` Lee Jones
2016-11-26 18:13 ` [PATCH 2/5] mfd: twl: remove useless header Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2017-01-03 15:30   ` Lee Jones
2017-01-03 15:30     ` Lee Jones
2017-01-03 15:30     ` Lee Jones
2016-11-26 18:13 ` [PATCH 3/5] mfd: twl: move structure definitions to a public header Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2017-01-03 15:40   ` Lee Jones
2017-01-03 15:40     ` Lee Jones
2017-01-03 15:40     ` Lee Jones
2016-11-26 18:13 ` [PATCH 4/5] regulator: Add support for TI TWL6032 Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2016-11-26 18:55   ` kbuild test robot
2016-11-26 18:55     ` kbuild test robot
2016-11-26 18:55     ` kbuild test robot
2016-11-26 20:24     ` Rosia, Nicolae
2016-11-26 20:24       ` Rosia, Nicolae
2016-11-26 20:24       ` Rosia, Nicolae
2016-12-01 16:10   ` Rob Herring
2016-12-01 16:10     ` Rob Herring
2016-11-26 18:13 ` [PATCH 5/5] mfd: twl: use mfd_add_devices for TWL6032 regulator Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2016-11-26 18:13   ` Nicolae Rosia
2017-01-03 15:46   ` Lee Jones
2017-01-03 15:46     ` Lee Jones
2017-01-03 15:46     ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.