[PATCH 1/3] [ARM] tegra: fix powergate register access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The powergate register writes had their arguments swapped. Fix it.

Signed-off-by: Mike Rapoport <mike@xxxxxxxxxxxxxx>
---
 arch/arm/mach-tegra/powergate.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index c286dad..9b27bf7 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -66,7 +66,7 @@ static int tegra_powergate_set(int id, bool new_state)
 		return -EINVAL;
 	}
 
-	pmc_write(PWRGATE_TOGGLE, PWRGATE_TOGGLE_START | id);
+	pmc_write(PWRGATE_TOGGLE_START | id, PWRGATE_TOGGLE);
 
 	spin_unlock_irqrestore(&tegra_powergate_lock, flags);
 
@@ -105,7 +105,7 @@ int tegra_powergate_remove_clamping(int id)
 	if (id < 0 || id >= TEGRA_NUM_POWERGATE)
 		return -EINVAL;
 
-	pmc_write(REMOVE_CLAMPING, 1 << id);
+	pmc_write(1 << id, REMOVE_CLAMPING);
 
 	return 0;
 }
-- 
1.6.6.2

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux