public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] regulator: core: support shared enable GPIO
@ 2013-02-18  6:50 Kim, Milo
  2013-02-19  3:06 ` Axel Lin
  2013-03-01  7:34 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Kim, Milo @ 2013-02-18  6:50 UTC (permalink / raw)
  To: Mark Brown; +Cc: Axel Lin, linux-kernel@vger.kernel.org

A Regulator can be enabled by external GPIO pin which is configurable in the
regulator_config.
At this moment, the GPIO can be owned by only one regulator device.
In some devices like LP8788 LDOs, multiple regulators are enabled by shared
one GPIO pin.
This patch-set enables shared enable GPIO concept and fix LP8788 LDO driver
as well.

Patches were generated based on 'for-next' of regulator.git
(git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git)

 Patch v3.
 a) Add a reference count, 'request_count' which makes sure only free the GPIO
    when it has no users
 b) Make return type of regulator_ena_gpio_ctrl()
 c) Free the GPIO when kzalloc() gets failed in regulator_ena_gpio_request()
 d) Add a pointer to the GPIO structure to the regulator_dev on setting the GPIO
    : use a GPIO structure directly instead of scanning the GPIO list

 Patch v2.
 a) Add a list for enable GPIO
 b) Add a reference count, 'enable_count' for actual pin control

 Patch v1.
 Initial patch

Milo(Woogyom) Kim (4):
  regulator: core: support shared enable GPIO concept
  regulator: core: manage enable GPIO list
  regulator: core: use regulator_ena_pin member
  regulator: lp8788-ldo: use ena_pin of regulator-core for external control

 drivers/regulator/core.c         |  142 +++++++++++++++++++++++++++++++++-----
 drivers/regulator/lp8788-ldo.c   |   98 +++++---------------------
 include/linux/regulator/driver.h |    4 +-
 3 files changed, 142 insertions(+), 102 deletions(-)

-- 
1.7.9.5


Best Regards,
Milo



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

* Re: [PATCH v3 0/4] regulator: core: support shared enable GPIO
  2013-02-18  6:50 [PATCH v3 0/4] regulator: core: support shared enable GPIO Kim, Milo
@ 2013-02-19  3:06 ` Axel Lin
  2013-03-01  7:34 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Axel Lin @ 2013-02-19  3:06 UTC (permalink / raw)
  To: Kim, Milo; +Cc: Mark Brown, linux-kernel@vger.kernel.org

2013/2/18 Kim, Milo <Milo.Kim@ti.com>:
> A Regulator can be enabled by external GPIO pin which is configurable in the
> regulator_config.
> At this moment, the GPIO can be owned by only one regulator device.
> In some devices like LP8788 LDOs, multiple regulators are enabled by shared
> one GPIO pin.
> This patch-set enables shared enable GPIO concept and fix LP8788 LDO driver
> as well.

This patch serial looks good to me.
You can add:
Reviewed-by: Axel Lin <axel.lin@ingics.com>

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

* Re: [PATCH v3 0/4] regulator: core: support shared enable GPIO
  2013-02-18  6:50 [PATCH v3 0/4] regulator: core: support shared enable GPIO Kim, Milo
  2013-02-19  3:06 ` Axel Lin
@ 2013-03-01  7:34 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-03-01  7:34 UTC (permalink / raw)
  To: Kim, Milo; +Cc: Axel Lin, linux-kernel@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

On Mon, Feb 18, 2013 at 06:50:30AM +0000, Kim, Milo wrote:
> A Regulator can be enabled by external GPIO pin which is configurable in the
> regulator_config.
> At this moment, the GPIO can be owned by only one regulator device.
> In some devices like LP8788 LDOs, multiple regulators are enabled by shared
> one GPIO pin.
> This patch-set enables shared enable GPIO concept and fix LP8788 LDO driver
> as well.

Applied all, thanks.  Axel had a few comments as did I but these can be
fixed up incrementally.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-03-01  7:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18  6:50 [PATCH v3 0/4] regulator: core: support shared enable GPIO Kim, Milo
2013-02-19  3:06 ` Axel Lin
2013-03-01  7:34 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox