From: Clemens Koller <clemens.koller@anagramm.de>
To: "Dag-Erling Smørgrav" <des@linpro.no>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC+PATCH] RTC calibration
Date: Tue, 11 Sep 2007 16:33:27 +0200 [thread overview]
Message-ID: <46E6A737.6080805@anagramm.de> (raw)
In-Reply-To: <ujrmyvt2tyy.fsf@false.linpro.no>
Dag-Erling Smørgrav schrieb:
> The STMicroelectronics M41T11 is an RTC chip which is similar in most
> ways to the Dallas/Maxim DS1307 or DS1337, except that it supports
> software calibration:
>
> http://www.st.com/stonline/books/pdf/docs/6103.pdf
>
> I want to use this calibration feature [...]
> [...]
> In order to access this from userland, I've added two ioctls,
> (RTC_SPEED_UP and RTC_SPEED_DOWN) with corresponding functions in
> drivers/rtc/interface.c (rtc_speed_up() and rtc_speed_down()) and
> corresponding slots in rtc_class_ops (speed_up and speed_down).
It looks odd to me to do only differential up and down adjustments.
I would prefer read_calibration_register and write_calibration_register
access and let the userspace decide how much it wants to
increment/decrement the register.
Or - do you adjust your date also after you changed your battery
with +1567days,7h,34m,12sec instead of telling it's 11th Sept. 2007, 4:33pm ?
Regards,
Clemens Koller
__________________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com
next prev parent reply other threads:[~2007-09-11 14:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 13:48 [RFC+PATCH] RTC calibration Dag-Erling Smørgrav
2007-09-11 14:33 ` Clemens Koller [this message]
2007-09-11 15:02 ` Dag-Erling Smørgrav
2007-09-11 15:36 ` Clemens Koller
2007-09-11 16:04 ` Dag-Erling Smørgrav
2007-09-11 19:02 ` Clemens Koller
2007-10-31 11:03 ` Pavel Machek
2007-09-11 15:23 ` Mark Gross
2007-09-11 15:51 ` Dag-Erling Smørgrav
2007-09-11 16:28 ` Dag-Erling Smørgrav
2007-09-12 10:49 ` Arne Georg Gleditsch
2007-09-12 10:59 ` Dag-Erling Smørgrav
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46E6A737.6080805@anagramm.de \
--to=clemens.koller@anagramm.de \
--cc=des@linpro.no \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.