Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df8f4d2f authored by Anton Vorontsov's avatar Anton Vorontsov
Browse files

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



commit 6eb5d146 ("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: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 3561d43f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}