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 V2] S5PC210: universal: update support pmic for c210 universal board
Date: Fri, 24 Dec 2010 17:35:32 +0000	[thread overview]
Message-ID: <20101224173531.GA26913@sirena.org.uk> (raw)
In-Reply-To: <1293168299-11552-1-git-send-email-dh09.lee@samsung.com>

On Fri, Dec 24, 2010 at 02:24:59PM +0900, Donghwa Lee wrote:

> +	select HAVE_SPARSE_IRQ
> +	select HAVE_GENERIC_HARDIRQS

I really would expect to see these controlled by the generic support for
the CPU or CPU architecture rather than by an individual machine -
they're properties of the core IRQ infrastructure for the system.

> +/* I2C5: PMICs LP3974, MAX8952 */
> +static struct regulator_consumer_supply max8952_consumer[] = {
> +	{
> +		.supply		= "varm_1.2v_c210",
> +	}, {
> +		.supply		= "vdd_arm",
> +	},

This looks very suspicious - you've got two supplies, both of which look
like the CPU core rail provided by the same regulator, one of which
looks like it's got the name of the supply hard coded into it.  What are
these two supplies exactly?

> +	.reg_data		= {
> +		.constraints	= {
> +			.name		= "VARM_1.2V",
> +			.min_uV		= 770000,
> +			.max_uV		= 1400000,
> +			.valid_ops_mask	= REGULATOR_CHANGE_VOLTAGE,

Interesting name for a supply that can change voltage :)

> +static struct regulator_consumer_supply lp3974_buck2_consumer[] = {
> +	{
> +		.supply		= "vg3d_1.2v_c210",
> +	},
> +};

This and most of the other consumers you're defining look like they're
actually the names for the relevant rails rather than supplies for
individual devices.  You shouldn't do this, supplies should be actual
supplies on individual consumers - probably most of these consumers
should just be removed.  You can name the supplies for UI purposes using
the .name field in the constraints.

> +static struct regulator_consumer_supply lp3974_ldo13_consumer[] = {
> +	REGULATOR_SUPPLY("vhsic", NULL),
> +};
> +
> +static struct regulator_consumer_supply lp3974_ldo14_consumer[] = {
> +	{
> +		.supply		= "cam_i_host_1.8v",
> +	},

There's also a mix of regulator_consumer_supply and open coding, please
be consistent.

> +static struct regulator_init_data lp3974_buck1_data = {
> +	.constraints	= {
> +		.name		= "VINT_1.1V",
> +		.min_uV		= 750000,
> +		.max_uV		= 1500000,
> +		.valid_ops_mask	= REGULATOR_CHANGE_VOLTAGE |
> +			REGULATOR_CHANGE_STATUS,

Can you really turn off the VINT regulator at runtime?  I'd expect that
to crash the processor.  Similarly for many of the other supplies.

  reply	other threads:[~2010-12-24 17:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-24  5:24 [PATCH V2] S5PC210: universal: update support pmic for c210 universal board Donghwa Lee
2010-12-24 17:35 ` Mark Brown [this message]
2010-12-27  4:34   ` Donghwa Lee
2010-12-27 11:24     ` Mark Brown

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=20101224173531.GA26913@sirena.org.uk \
    --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