Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP2+: PRM: initialize en_uart4_mask and grpsel_uart4_mask

In the case where has_uart4 is false, en_uart4_mask and grpsel_uart4_mask
are not initialized and so any garbage value is being logically or'd into
the write of PM_WKEN and OMAP3430_PM_MPUGRPSEL. Fix this by initializing
these masks to zero.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Colin Ian King and committed by
Tony Lindgren
4ae46efc 271a3024

+3
+3
arch/arm/mach-omap2/prm3xxx.c
··· 319 319 if (has_uart4) { 320 320 en_uart4_mask = OMAP3630_EN_UART4_MASK; 321 321 grpsel_uart4_mask = OMAP3630_GRPSEL_UART4_MASK; 322 + } else { 323 + en_uart4_mask = 0; 324 + grpsel_uart4_mask = 0; 322 325 } 323 326 324 327 /* Enable wakeups in PER */