From 85227a27fb448a46933974e9670149c6f89bffcf Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Mon, 7 Aug 2017 08:59:13 +0200 Subject: [PATCH] rx6110sa: Make sure that VLF bit will be cleared Ensure that the VLF bit will be cleared after a power loss event even if the stopwatch has expired before the code to clear the bit is reached. Change-Id: Ib2cfdabf4cd4df834395d6a102c6ae70568e71db Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/20893 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Mario Scheithauer --- src/drivers/i2c/rx6110sa/rx6110sa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/i2c/rx6110sa/rx6110sa.c b/src/drivers/i2c/rx6110sa/rx6110sa.c index 761d83d810..2c62f230bd 100644 --- a/src/drivers/i2c/rx6110sa/rx6110sa.c +++ b/src/drivers/i2c/rx6110sa/rx6110sa.c @@ -163,7 +163,8 @@ static void rx6110sa_init(struct device *dev) * VLF-bit can be cleared. */ while (!stopwatch_expired(&sw)) - flags &= ~VLF_BIT; + ; + flags &= ~VLF_BIT; rx6110sa_write(dev, FLAG_REGISTER, flags); /* Before setting the clock stop oscillator. */