public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <k.kozlowski@samsung.com>
To: Mark Brown <broonie@kernel.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
	Lee Jones <lee.jones@linaro.org>,
	Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	linux-kernel@vger.kernel.org,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Tomasz Figa <t.figa@samsung.com>,
	Anton Vorontsov <anton@enomsg.org>
Subject: Re: [PATCH part2 5/6] regulator: max14577: Implement SUSPEND mode for MAX77836 LDO-s
Date: Mon, 05 May 2014 10:47:24 +0200	[thread overview]
Message-ID: <1399279644.17696.3.camel@AMDC1943> (raw)
In-Reply-To: <20140501181908.GS3245@sirena.org.uk>

On czw, 2014-05-01 at 11:19 -0700, Mark Brown wrote:
> On Wed, Apr 23, 2014 at 04:50:39PM +0200, Krzysztof Kozlowski wrote:
> 
> > This patch adds support for mode REGULATOR_MODE_STANDBY (and NORMAL) to
> > LDO regulators by implementing the set_mode() and get_mode() operations.
> > However the necessary regulator constraints (valid modes) are not parsed
> > by of_regulator_match() so the driver adds them manually to the
> > regulator init_data.
> 
> No, that's not the idea here.  The reason that the modes need to be
> explicitly enabled is that there's an element of board design in
> determining if a given mode can satisfy the required current demand for
> the board with sufficient quality (usually the lower power modes have
> both a lower maximum current and poorer regulation accuracy especially
> as the current rises).  Doing it unconditionally isn't in general
> reliable.
> 
> The reason that the modes aren't supported by DT is that defining a
> binding is hard - it's not clear what exactly a "mode" means since it's
> basically a Linux internal thing.  We probably need to explicitly add
> definitions of the modes to the bindings for individual devices
> unfortunately (ie, saying "mode X maps to Y in the datasheet", possibly
> using the datasheet modes in the binding for ease of use and having that
> translation in the driver).
> 
> Ideally we'd be able to have the automatic mode setting working for
> devices but in practice nobody wants to publish the numbers and working
> out how much the board needs can also be hard so that isn't really
> practical.

I understand. Lets skip this patch now. I will prepare in the future a
version of this patch with own DT binding for max77836 suspend mode.

Best regards,
Krzysztof


  reply	other threads:[~2014-05-05  8:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 14:50 [PATCH part2 0/6] charger/mfd: max14577: Part 2 of adding support for MAX77836 Krzysztof Kozlowski
2014-04-23 14:50 ` [PATCH part2 1/6] charger: max14577: Add support for MAX77836 charger Krzysztof Kozlowski
2014-04-23 14:50 ` [PATCH part2 2/6] regulator/mfd: max14577: Export symbols for calculating charger current Krzysztof Kozlowski
2014-04-24 12:48   ` Mark Brown
2014-04-25 13:45     ` Krzysztof Kozlowski
2014-04-25 14:16       ` Mark Brown
2014-04-23 14:50 ` [PATCH part2 3/6] charger: max14577: Configure battery-dependent settings from DTS Krzysztof Kozlowski
2014-04-23 14:50 ` [PATCH part2 4/6] power: max17040: Add ID for MAX77836 Fuel Gauge block Krzysztof Kozlowski
2014-04-23 14:50 ` [PATCH part2 5/6] regulator: max14577: Implement SUSPEND mode for MAX77836 LDO-s Krzysztof Kozlowski
2014-04-28 11:14   ` Lee Jones
2014-05-01 18:19   ` Mark Brown
2014-05-05  8:47     ` Krzysztof Kozlowski [this message]
2014-04-23 14:50 ` [PATCH part2 6/6] devicetree: mfd: max14577: Add device tree bindings document Krzysztof Kozlowski
2014-05-06  7:38 ` [PATCH part2 0/6] charger/mfd: max14577: Part 2 of adding support for MAX77836 Krzysztof Kozlowski

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=1399279644.17696.3.camel@AMDC1943 \
    --to=k.kozlowski@samsung.com \
    --cc=anton@enomsg.org \
    --cc=b.zolnierkie@samsung.com \
    --cc=broonie@kernel.org \
    --cc=dbaryshkov@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=kyungmin.park@samsung.com \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=sameo@linux.intel.com \
    --cc=t.figa@samsung.com \
    /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