ARM: tegra: Export tegra_powergate_sequence_power_up()
Subsystems (3)
PATCH 1/2 ARM: tegra: Export tegra_powergate_sequence_power_up()
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.
--- arch/arm/mach-tegra/powergate.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-tegra/powergate.c +2 -0
@@ -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) {
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1364502904-5284-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org
PATCH 2/2 ARM: tegra: powergate: Don't error out if new state == old state
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.
--- arch/arm/mach-tegra/powergate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-tegra/powergate.c +1 -1
@@ -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 );
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1364502904-5284-2-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org
Re: [PATCH 2/2] ARM: tegra: powergate: Don't error out if new state == old state
Quoted 3 lines · Thierry Reding
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?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 2/2] ARM: tegra: powergate: Don't error out if new state == old state
Quoted 7 lines · Stephen Warren
Quoted 3 lines · Thierry Reding
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
Stephen Warren
AppliedQuoted 3 lines · Thierry Reding
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.