| To: | Linux-MIPS <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 2/5] MIPS: Alchemy: include Au1100 in PM code. |
| From: | Manuel Lauss <manuel.lauss@googlemail.com> |
| Date: | Fri, 8 Jul 2011 11:18:40 +0200 |
| Cc: | Manuel Lauss <manuel.lauss@googlemail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=3efbWbcTLeLW9rfV0SCWe038k+uCJfOGEYTyw/HDp/Q=; b=BZhKfaMCaHSgvVp0N8b2p8FnZ9lKDWvbKMWaoMWgI24icuNQzZmOPXjJPdzYbVlPyZ cYtSUxYFWM2niuN+ephN3iPTNFOFoHCOKPQa32fwKN1XxZk/OkqSYO5tm1sXAw9xOh+V HgfDW4lnS6sl9AIjQzPT73UoeOt56JQGLsV0g= |
| In-reply-to: | <1310116723-8632-1-git-send-email-manuel.lauss@googlemail.com> |
| References: | <1310116723-8632-1-git-send-email-manuel.lauss@googlemail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
The current code forgets the Au1100 when looking for the
correct method to suspend the chip.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
---
arch/mips/alchemy/common/power.c | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/arch/mips/alchemy/common/power.c b/arch/mips/alchemy/common/power.c
index 647e518..b86324a 100644
--- a/arch/mips/alchemy/common/power.c
+++ b/arch/mips/alchemy/common/power.c
@@ -158,15 +158,21 @@ static void restore_core_regs(void)
void au_sleep(void)
{
- int cpuid = alchemy_get_cputype();
- if (cpuid != ALCHEMY_CPU_UNKNOWN) {
- save_core_regs();
- if (cpuid <= ALCHEMY_CPU_AU1500)
- alchemy_sleep_au1000();
- else if (cpuid <= ALCHEMY_CPU_AU1200)
- alchemy_sleep_au1550();
- restore_core_regs();
+ save_core_regs();
+
+ switch (alchemy_get_cputype()) {
+ case ALCHEMY_CPU_AU1000:
+ case ALCHEMY_CPU_AU1500:
+ case ALCHEMY_CPU_AU1100:
+ alchemy_sleep_au1000();
+ break;
+ case ALCHEMY_CPU_AU1550:
+ case ALCHEMY_CPU_AU1200:
+ alchemy_sleep_au1550();
+ break;
}
+
+ restore_core_regs();
}
#endif /* CONFIG_PM */
--
1.7.6
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/5] net: au1000_eth: pass MACDMA address through platform resource info., Manuel Lauss |
|---|---|
| Next by Date: | [PATCH 5/5] MIPS: Alchemy: more base address cleanup, Manuel Lauss |
| Previous by Thread: | [PATCH 1/5] net: au1000_eth: pass MACDMA address through platform resource info., Manuel Lauss |
| Next by Thread: | [PATCH 5/5] MIPS: Alchemy: more base address cleanup, Manuel Lauss |
| Indexes: | [Date] [Thread] [Top] [All Lists] |