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
--