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