Re: [PATCH] RTC: M41T80: Century Bit support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <macro@...>
Cc: <a.zummo@...>, <hvr@...>, <akpm@...>, <rtc-linux@...>, <linux-mips@...>, <linux-kernel@...>
Date: Saturday, May 17, 2008 - 11:02 am

On Sat, 17 May 2008 01:25:18 +0100 (BST), "Maciej W. Rozycki" <macro@linux-mips.org> wrote:

This patch enforces that all (including future) users of this device
must use same interpretation of CB bit.  I think this is too
intrusive.

And I have one (out-of-tree, and only one in the world) board with
this device and its firmware uses different interpretation.
Fortunately I can change this firmware, so this is not a serious
problem for me. ;)

How about doing like this?

1. If CEB was 0, keep current behavior. (does not touch CB bit)

2. If CEB was 1, detect polarity of CB bit on get_datetime, and set or
   clear CB bit on set_datetime based on the polarity.

Please look at "c_polarity" variable in rtc-pcf8563.c driver.

---
Atsushi Nemoto
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] RTC: M41T80: Century Bit support, Maciej W. Rozycki, (Fri May 16, 8:25 pm)
Re: [PATCH] RTC: M41T80: Century Bit support, Atsushi Nemoto, (Sat May 17, 11:02 am)
Re: [PATCH] RTC: M41T80: Century Bit support, Maciej W. Rozycki, (Sat May 17, 3:16 pm)
Re: [PATCH] RTC: M41T80: Century Bit support, Atsushi Nemoto, (Sun May 18, 12:10 pm)
Re: [PATCH] RTC: M41T80: Century Bit support, Maciej W. Rozycki, (Tue May 20, 3:51 pm)
Re: [PATCH] RTC: M41T80: Century Bit support, Atsushi Nemoto, (Tue May 20, 8:56 pm)
Re: [PATCH] RTC: M41T80: Century Bit support, Andrew Morton, (Tue May 20, 4:03 pm)
Re: [PATCH] RTC: M41T80: Century Bit support, Maciej W. Rozycki, (Tue May 20, 4:30 pm)