Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1530719
| From | Nicolae Rosia <Nicolae_Rosia@mentor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/5] mfd: twl: improvements and new regulator driver |
| Date | 2016-11-26 19:20 +0100 |
| Message-ID | <sHPJT-1GL-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/5] mfd: twl: improvements and new regulator driver Nicolae Rosia <Nicolae_Rosia@mentor.com> - 2016-11-26 19:20 +0100
[PATCH 1/5] mfd: twl-core: make driver DT only Nicolae Rosia <Nicolae_Rosia@mentor.com> - 2016-11-26 19:20 +0100
[PATCH 5/5] mfd: twl: use mfd_add_devices for TWL6032 regulator Nicolae Rosia <Nicolae_Rosia@mentor.com> - 2016-11-26 19:20 +0100
[PATCH 2/5] mfd: twl: remove useless header Nicolae Rosia <Nicolae_Rosia@mentor.com> - 2016-11-26 19:20 +0100
[PATCH 4/5] regulator: Add support for TI TWL6032 Nicolae Rosia <Nicolae_Rosia@mentor.com> - 2016-11-26 19:20 +0100
Re: [PATCH 4/5] regulator: Add support for TI TWL6032 Rob Herring <robh@kernel.org> - 2016-12-01 17:20 +0100
[PATCH 3/5] mfd: twl: move structure definitions to a public header Nicolae Rosia <Nicolae_Rosia@mentor.com> - 2016-11-26 19:20 +0100
csiph-web