Patch "rtc: ds1307: Clear OSF flag on DS1388 when setting time" has been added to the 5.8-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    rtc: ds1307: Clear OSF flag on DS1388 when setting time

to the 5.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rtc-ds1307-clear-osf-flag-on-ds1388-when-setting-tim.patch
and it can be found in the queue-5.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0be68d90927753d1878a7a1dbca85045056c5985
Author: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
Date:   Tue Aug 18 13:35:43 2020 +1200

    rtc: ds1307: Clear OSF flag on DS1388 when setting time
    
    [ Upstream commit f471b05f76e4b1b6ba07ebc7681920a5c5b97c5d ]
    
    Ensure the OSF flag is cleared on the DS1388 when the clock is set.
    
    Fixes: df11b323b16f ("rtc: ds1307: handle oscillator failure flags for ds1388 variant")
    Signed-off-by: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200818013543.4283-1-chris.packham@xxxxxxxxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index 49702942bb086..70b198423deba 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -352,6 +352,10 @@ static int ds1307_set_time(struct device *dev, struct rtc_time *t)
 		regmap_update_bits(ds1307->regmap, DS1340_REG_FLAG,
 				   DS1340_BIT_OSF, 0);
 		break;
+	case ds_1388:
+		regmap_update_bits(ds1307->regmap, DS1388_REG_FLAG,
+				   DS1388_BIT_OSF, 0);
+		break;
 	case mcp794xx:
 		/*
 		 * these bits were cleared when preparing the date/time



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux