* [PATCH 1/2] ARM: tegra: Export tegra_powergate_sequence_power_up()
@ 2013-03-28 20:35 Thierry Reding
[not found] ` <1364502904-5284-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2013-03-28 20:35 UTC (permalink / raw)
To: Stephen Warren; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA
This function can be used by drivers to enable power to the hardware
blocks that they drive. Most of the drivers can be built as a module
and therefore require this function to be exported.
Signed-off-by: Thierry Reding <thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
---
arch/arm/mach-tegra/powergate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index c6bc8f8..c472bed 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -22,6 +22,7 @@
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/err.h>
+#include <linux/export.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/seq_file.h>
@@ -168,6 +169,7 @@ err_clk:
err_power:
return ret;
}
+EXPORT_SYMBOL(tegra_powergate_sequence_power_up);
int tegra_cpu_powergate_id(int cpuid)
{
--
1.8.1.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ARM: tegra: powergate: Don't error out if new state == old state
[not found] ` <1364502904-5284-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
@ 2013-03-28 20:35 ` Thierry Reding
[not found] ` <1364502904-5284-2-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2013-03-29 16:39 ` [PATCH 1/2] ARM: tegra: Export tegra_powergate_sequence_power_up() Stephen Warren
1 sibling, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2013-03-28 20:35 UTC (permalink / raw)
To: Stephen Warren; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA
Don't treat it as an error if a partition is already in the same power
state when a user wants to power it on or off. This allows code to
proceed if no state change is required.
Signed-off-by: Thierry Reding <thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
---
arch/arm/mach-tegra/powergate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index c472bed..af9067e 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -76,7 +76,7 @@ static int tegra_powergate_set(int id, bool new_state)
if (status == new_state) {
spin_unlock_irqrestore(&tegra_powergate_lock, flags);
- return -EINVAL;
+ return 0;
}
pmc_write(PWRGATE_TOGGLE_START | id, PWRGATE_TOGGLE);
--
1.8.1.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] ARM: tegra: powergate: Don't error out if new state == old state
[not found] ` <1364502904-5284-2-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
@ 2013-03-28 23:23 ` Stephen Warren
[not found] ` <5154D106.40608-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Warren @ 2013-03-28 23:23 UTC (permalink / raw)
To: Thierry Reding, Joseph Lo; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 03/28/2013 02:35 PM, Thierry Reding wrote:
> Don't treat it as an error if a partition is already in the same power
> state when a user wants to power it on or off. This allows code to
> proceed if no state change is required.
Joseph, I think you had argued specifically against making this change
in the past. Are you OK with this?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] ARM: tegra: powergate: Don't error out if new state == old state
[not found] ` <5154D106.40608-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2013-03-29 0:50 ` Joseph Lo
0 siblings, 0 replies; 5+ messages in thread
From: Joseph Lo @ 2013-03-29 0:50 UTC (permalink / raw)
To: Stephen Warren
Cc: Thierry Reding,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On Fri, 2013-03-29 at 07:23 +0800, Stephen Warren wrote:
> On 03/28/2013 02:35 PM, Thierry Reding wrote:
> > Don't treat it as an error if a partition is already in the same power
> > state when a user wants to power it on or off. This allows code to
> > proceed if no state change is required.
>
> Joseph, I think you had argued specifically against making this change
> in the past. Are you OK with this?
Oh, that is because I use the same function for CPU hot plug power
control, and I need to know the power status when doing power control.
But I moved all the CPU power control function into PMC driver. So I am
OK with this change.
Thanks,
Joseph
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] ARM: tegra: Export tegra_powergate_sequence_power_up()
[not found] ` <1364502904-5284-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2013-03-28 20:35 ` [PATCH 2/2] ARM: tegra: powergate: Don't error out if new state == old state Thierry Reding
@ 2013-03-29 16:39 ` Stephen Warren
1 sibling, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2013-03-29 16:39 UTC (permalink / raw)
To: Thierry Reding; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 03/28/2013 02:35 PM, Thierry Reding wrote:
> This function can be used by drivers to enable power to the hardware
> blocks that they drive. Most of the drivers can be built as a module
> and therefore require this function to be exported.
I applied the series to Tegra's for-3.10/fixes branch.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-29 16:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 20:35 [PATCH 1/2] ARM: tegra: Export tegra_powergate_sequence_power_up() Thierry Reding
[not found] ` <1364502904-5284-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2013-03-28 20:35 ` [PATCH 2/2] ARM: tegra: powergate: Don't error out if new state == old state Thierry Reding
[not found] ` <1364502904-5284-2-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2013-03-28 23:23 ` Stephen Warren
[not found] ` <5154D106.40608-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-29 0:50 ` Joseph Lo
2013-03-29 16:39 ` [PATCH 1/2] ARM: tegra: Export tegra_powergate_sequence_power_up() Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).