summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2011-08-02 16:23:28 -0500
committerJason Liu <r64343@freescale.com>2012-01-09 20:21:51 +0800
commit2d98beb5d590a9e5d4fdf08f25b5a1c029b709cc (patch)
tree8dc57fe02217e5ff50c98a788bfce70ca21967a4 /drivers/rtc
parent124d3ac4e38be0dc3eb6efb41805eca85c7c6973 (diff)
ENGR00154209 SNVS RTC: Update comments for errata number
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-snvs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c
index 08e5378dd2e9..3125ec09926c 100644
--- a/drivers/rtc/rtc-snvs.c
+++ b/drivers/rtc/rtc-snvs.c
@@ -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);