Skip to content

Commit

Permalink
ARM: cns3xxx: Make cns3xxx_pwr_soft_rst_force() to actually reset blocks
Browse files Browse the repository at this point in the history
commit 6eb5d14 ("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>
  • Loading branch information
Anton Vorontsov committed Nov 26, 2010
1 parent 3561d43 commit df8f4d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-cns3xxx/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static void cns3xxx_pwr_soft_rst_force(unsigned int block)
reg &= ~(block & PM_SOFT_RST_REG_MASK);
} else {
reg &= ~(block & PM_SOFT_RST_REG_MASK);
__raw_writel(reg, PM_SOFT_RST_REG);
reg |= (block & PM_SOFT_RST_REG_MASK);
}

Expand Down

0 comments on commit df8f4d2

Please sign in to comment.