| To: | Linux-MIPS <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 03/15] MIPS: Alchemy: include Au1100 in PM code. |
| From: | Manuel Lauss <manuel.lauss@googlemail.com> |
| Date: | Tue, 2 Aug 2011 19:50:58 +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=frRbHVGTNOfGrRmTmg66o0Na+vouZPHkI7EGpZx5Yn4JqOv3ButoXWCs3XmncGG+oY sTEcvFvG67JY+YS/2f2yxLGkl8nq+8jn78uKytbLeHWPG0bGDbvSu9br8HY4esWk/gpi 2O+sBRD1HBfqxThnmtpZ6wIFjBk03kKglYYfM= |
| In-reply-to: | <1312307470-6841-1-git-send-email-manuel.lauss@googlemail.com> |
| References: | <1312307470-6841-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
|
| Previous by Date: | [PATCH 02/15] net: au1000_eth: pass MACDMA address through platform resource info., Manuel Lauss |
|---|---|
| Next by Date: | [PATCH 05/15] MIPS: Alchemy: rewrite USB platform setup., Manuel Lauss |
| Previous by Thread: | Re: [PATCH 02/15] net: au1000_eth: pass MACDMA address through platform resource info., Ralf Baechle |
| Next by Thread: | Re: [PATCH 03/15] MIPS: Alchemy: include Au1100 in PM code., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |