public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] arm: s5pv210: Aquila: add support for MAX8998 PMIC
Date: Thu, 1 Jul 2010 15:05:11 +0100	[thread overview]
Message-ID: <20100701140510.GB8742@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <000001cb1921$d75de060$8619a120$%szyprowski@samsung.com>

On Thu, Jul 01, 2010 at 03:32:17PM +0200, Marek Szyprowski wrote:

> One more question - should I enable the regulators in the driver itself
> or in the platform callback (like a "poweron()" callback)?

I don't understand what you mean by "platform callback".  Normally the
driver would unconditionally use the regulators.

> If I put regulator enabling into the driver how can one make it working
> on a board without regulators (chip powered all the time)? Should the
> driver ignore errors from regulator_get()?

No, check the errors.  The regulator API will stub itself out if it's
not enabled in Kconfig (which will happen on boards where it's not being
used at all), boards using a mixed configuration can use fixed voltage
regulators for static supplies and REGULATOR_DUMMY can also be used.

> What if one regulator needs enabling other to operate properly 
> (parent-child hierarchy)?

Set up supplies for the child regulators in their constraints.  This
isn't heavily tested at the minute but it should do the right thing for
you automatically in the core; if it doesn't work we can fix it up.

  reply	other threads:[~2010-07-01 14:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-01  6:07 [PATCH] Samsung Aquila & GONI update Marek Szyprowski
2010-07-01  6:07 ` [PATCH 1/3] arm: s5pv210: GONI: add support for framebuffer Marek Szyprowski
2010-07-01  6:07 ` [PATCH 2/3] arm: s5pv210: Aquila: add support for MAX8998 PMIC Marek Szyprowski
2010-07-01 12:24   ` Mark Brown
2010-07-01 13:32     ` Marek Szyprowski
2010-07-01 14:05       ` Mark Brown [this message]
2010-07-01  6:07 ` [PATCH 3/3] arm: s5pv210: GONI: " Marek Szyprowski
2010-07-01 12:25   ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2010-07-05  9:16 [PATCH v2] Samsung Aquila & GONI update Marek Szyprowski
2010-07-05  9:16 ` [PATCH 2/3] arm: s5pv210: Aquila: add support for MAX8998 PMIC Marek Szyprowski
2010-07-14  4:56   ` Kukjin Kim
2010-07-14  7:30     ` Marek Szyprowski
2010-07-14  8:16 [PATCH v3] Samsung Aquila & GONI update Marek Szyprowski
2010-07-14  8:16 ` [PATCH 2/3] ARM: S5PV210: Aquila: add support for MAX8998 PMIC Marek Szyprowski
2010-07-14  8:33   ` Mark Brown
2010-07-14  9:42     ` Kukjin Kim
2010-07-14  9:42   ` Kukjin Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100701140510.GB8742@rakim.wolfsonmicro.main \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox