All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] ARM: mvebu: Move SCU power up in a function
Date: Fri, 24 Oct 2014 14:28:39 +0200	[thread overview]
Message-ID: <544A45F7.5070300@free-electrons.com> (raw)
In-Reply-To: <20141024141958.319af5d3@free-electrons.com>

Hi Thomas,

On 24/10/2014 14:19, Thomas Petazzoni wrote:
> Dear Gregory CLEMENT,
> 
> On Fri, 24 Oct 2014 14:11:17 +0200, Gregory CLEMENT wrote:
> 
>>> Since this function is not static, I think it might be a good idea to
>>> use a prefix that makes it more specific to the platform in order to
>>> not pollute the global namespace. Maybe something like
>>> 'armada_38x_scu_power_up', or something like that.
>>
>> Yes given the fact that this function is declared in the mach-mveu folder
>> it is sensible to use a more specific name. However the function itself
>> is not specific at all to an SoC. This function could be used for any Cortex A9
>> using the SCU.
> 
> Indeed, but as you say, it's right now defined in the mvebu specific
> code, so we shouldn't pollute the global namespace.
> 
> Note that there is already a scu_power_mode() that does the same thing,

I know this function: I used it for the idle support.

> but implemented in C, so I'm not sure you can call it at search an early
> point.

you meant "such" instead of "search" I guess, and yes unfortunately we can't use
a C function at this step.

Gregory



-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

WARNING: multiple messages have this Message-ID (diff)
From: Gregory CLEMENT <gregory.clement@free-electrons.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Lior Amsalem <alior@marvell.com>, Andrew Lunn <andrew@lunn.ch>,
	Jason Cooper <jason@lakedaemon.net>,
	Tawfik Bayouk <tawfik@marvell.com>,
	linux-kernel@vger.kernel.org, Nadav Haklai <nadavh@marvell.com>,
	Ezequiel Garcia <ezequiel.garcia@free-electrons.com>,
	linux-arm-kernel@lists.infradead.org,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Subject: Re: [PATCH 2/4] ARM: mvebu: Move SCU power up in a function
Date: Fri, 24 Oct 2014 14:28:39 +0200	[thread overview]
Message-ID: <544A45F7.5070300@free-electrons.com> (raw)
In-Reply-To: <20141024141958.319af5d3@free-electrons.com>

Hi Thomas,

On 24/10/2014 14:19, Thomas Petazzoni wrote:
> Dear Gregory CLEMENT,
> 
> On Fri, 24 Oct 2014 14:11:17 +0200, Gregory CLEMENT wrote:
> 
>>> Since this function is not static, I think it might be a good idea to
>>> use a prefix that makes it more specific to the platform in order to
>>> not pollute the global namespace. Maybe something like
>>> 'armada_38x_scu_power_up', or something like that.
>>
>> Yes given the fact that this function is declared in the mach-mveu folder
>> it is sensible to use a more specific name. However the function itself
>> is not specific at all to an SoC. This function could be used for any Cortex A9
>> using the SCU.
> 
> Indeed, but as you say, it's right now defined in the mvebu specific
> code, so we shouldn't pollute the global namespace.
> 
> Note that there is already a scu_power_mode() that does the same thing,

I know this function: I used it for the idle support.

> but implemented in C, so I'm not sure you can call it at search an early
> point.

you meant "such" instead of "search" I guess, and yes unfortunately we can't use
a C function at this step.

Gregory



-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2014-10-24 12:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 18:14 [PATCH 0/4] Hot plug support for Armada 38x Gregory CLEMENT
2014-10-23 18:14 ` Gregory CLEMENT
2014-10-23 18:14 ` [PATCH 1/4] ARM: mvebu: Clean-up the Armada XP support Gregory CLEMENT
2014-10-23 18:14   ` Gregory CLEMENT
2014-10-23 18:41   ` Thomas Petazzoni
2014-10-23 18:41     ` Thomas Petazzoni
2014-10-23 18:14 ` [PATCH 2/4] ARM: mvebu: Move SCU power up in a function Gregory CLEMENT
2014-10-23 18:14   ` Gregory CLEMENT
2014-10-24 12:05   ` Thomas Petazzoni
2014-10-24 12:05     ` Thomas Petazzoni
2014-10-24 12:11     ` Gregory CLEMENT
2014-10-24 12:11       ` Gregory CLEMENT
2014-10-24 12:19       ` Thomas Petazzoni
2014-10-24 12:19         ` Thomas Petazzoni
2014-10-24 12:28         ` Gregory CLEMENT [this message]
2014-10-24 12:28           ` Gregory CLEMENT
2014-10-23 18:14 ` [PATCH 3/4] ARM: mvebu: Fix secondary startup for Cortex A9 SoC Gregory CLEMENT
2014-10-23 18:14   ` Gregory CLEMENT
2014-10-23 18:14 ` [PATCH 4/4] ARM: mvebu: Implement CPU hotplug support for Armada 38x Gregory CLEMENT
2014-10-23 18:14   ` Gregory CLEMENT

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=544A45F7.5070300@free-electrons.com \
    --to=gregory.clement@free-electrons.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.