[PATCH] fixup! reset: add reset controller driver for STM32 RCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes some unfortunate last-moment refactoring.
With this change, the reset works correctly now.
---
 drivers/reset/reset-stm32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/reset/reset-stm32.c b/drivers/reset/reset-stm32.c
index ff66fe310e1a..5689dfd4888a 100644
--- a/drivers/reset/reset-stm32.c
+++ b/drivers/reset/reset-stm32.c
@@ -26,8 +26,8 @@ static struct stm32_reset *to_stm32_reset(struct reset_controller_dev *rcdev)
 
 static void stm32mp_reset(void __iomem *reg, unsigned offset, bool assert)
 {
-	if (assert)
-		offset += RCC_CL;
+	if (!assert)
+		reg += RCC_CL;
 
 	writel(BIT(offset), reg);
 }
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux