]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4458/1: pxa: Fix CKEN usage and hence fix pxa suspend/resume
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 2 Jul 2007 09:19:07 +0000 (10:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Jul 2007 12:39:37 +0000 (13:39 +0100)
The PXA CKEN changes broken syspend/resume on the pxa27x. This patch
corrects the problem and fixes another couple of bad references.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/pxa27x.c
sound/arm/pxa2xx-ac97.c
sound/soc/pxa/pxa2xx-ac97.c

index c64bab49efc4ea7ed850b700692ed501956f14f2..1939acc3f9f7f6cdbd21e9d4fbc07ed55230686a 100644 (file)
@@ -140,9 +140,9 @@ void pxa_cpu_pm_enter(suspend_state_t state)
        extern void pxa_cpu_resume(void);
 
        if (state == PM_SUSPEND_STANDBY)
-               CKEN = CKEN_MEMC | CKEN_OSTIMER | CKEN_LCD | CKEN_PWM0;
+               CKEN = (1 << CKEN_MEMC) | (1 << CKEN_OSTIMER) | (1 << CKEN_LCD) | (1 << CKEN_PWM0);
        else
-               CKEN = CKEN_MEMC | CKEN_OSTIMER;
+               CKEN = (1 << CKEN_MEMC) | (1 << CKEN_OSTIMER);
 
        /* ensure voltage-change sequencer not initiated, which hangs */
        PCFR &= ~PCFR_FVC;
index 19c65a8d86a71eee7a31f6dadc48081ee1ea7749..7bc2767e1584a08e112cfdf744d7a0f22a0a72fb 100644 (file)
@@ -361,7 +361,7 @@ static int __devinit pxa2xx_ac97_probe(struct platform_device *dev)
  err:
        if (card)
                snd_card_free(card);
-       if (CKEN & CKEN_AC97) {
+       if (CKEN & (1 << CKEN_AC97)) {
                GCR |= GCR_ACLINK_OFF;
                free_irq(IRQ_AC97, NULL);
                pxa_set_cken(CKEN_AC97, 0);
index b222755763e798aa1a3c62c0331305e811821619..129d851b31511fb8516df1b89c50a85248b62a67 100644 (file)
@@ -300,7 +300,7 @@ static int pxa2xx_ac97_probe(struct platform_device *pdev)
        return 0;
 
  err:
-       if (CKEN & CKEN_AC97) {
+       if (CKEN & (1 << CKEN_AC97)) {
                GCR |= GCR_ACLINK_OFF;
                free_irq(IRQ_AC97, NULL);
                pxa_set_cken(CKEN_AC97, 0);