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

ARM: cns3xxx: Make cns3xxx_pwr_soft_rst_force() to actually reset blocks

commit 6eb5d146d4535 ("ARM: cns3xxx: Use IO memory accessors everywhere")
breaks cns3xxx_pwr_soft_rst_force() function, so that it doesn't write
cleared bit into the register.

This patch fixes the issue by adding the necessary __raw_writel().

Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

+1
+1
arch/arm/mach-cns3xxx/pm.c
··· 51 51 reg &= ~(block & PM_SOFT_RST_REG_MASK); 52 52 } else { 53 53 reg &= ~(block & PM_SOFT_RST_REG_MASK); 54 + __raw_writel(reg, PM_SOFT_RST_REG); 54 55 reg |= (block & PM_SOFT_RST_REG_MASK); 55 56 } 56 57