]> git.hungrycats.org Git - linux/commitdiff
ARM: at91/PMC: don't forget to write PMC_PCDR register to disable clocks
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 22 Sep 2014 13:51:33 +0000 (15:51 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:11:29 +0000 (15:11 +0100)
commit cfa1950e6c6b72251e80adc736af3c3d2907ab0e upstream.

When introducing support for sama5d3, the write to PMC_PCDR register has
been accidentally removed.

Reported-by: Nathalie Cyrille <nathalie.cyrille@atmel.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/mach-at91/clock.c

index 6b2630a92f71723644ff7c7242cf6579aa7f4802..0778e54f15738c8c30b71c52a945f3fdd98f6372 100644 (file)
@@ -963,6 +963,7 @@ static int __init at91_clock_reset(void)
        }
 
        at91_pmc_write(AT91_PMC_SCDR, scdr);
+       at91_pmc_write(AT91_PMC_PCDR, pcdr);
        if (cpu_is_sama5d3())
                at91_pmc_write(AT91_PMC_PCDR1, pcdr1);