]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00154209 SNVS RTC: Update comments for errata number
authorAnish Trivedi <anish@freescale.com>
Tue, 2 Aug 2011 21:23:28 +0000 (16:23 -0500)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:25 +0000 (14:09 +0200)
Add TKT052983 errata number to comments field. This errata
requires reading the counter value twice until both
values match to ensure integrity of read value.

Signed-off-by: Anish Trivedi <anish@freescale.com>
drivers/rtc/rtc-snvs.c

index 08e5378dd2e903be1108044a97c5d6061de5a1e9..3125ec09926ccd3b3152c21080f7b39301d22499 100644 (file)
@@ -94,7 +94,7 @@ static DEFINE_SPINLOCK(rtc_lock);
  * LP counter register reads should always use this function.
  * This function reads 2 consective times from LP counter register
  * until the 2 values match. This is to avoid reading corrupt
- * value if the counter is in the middle of updating
+ * value if the counter is in the middle of updating (TKT052983)
  */
 static inline u32 rtc_read_lp_counter(void __iomem *counter_reg)
 {
@@ -132,7 +132,9 @@ static inline void rtc_write_sync_lp(void __iomem *ioaddr)
        /* Wait for 3 CKIL cycles */
        for (i = 0; i < 3; i++) {
 
-               /* Do consective reads of LSB of counter to ensure integrity */
+               /* TKT052983: Do consective reads of LSB of counter
+                * to ensure integrity
+                */
                do {
                        count1 = __raw_readl(ioaddr + SNVS_LPSRTCLR);
                        count2 = __raw_readl(ioaddr + SNVS_LPSRTCLR);