linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Igor Plyatov <plyatov@gmail.com>
To: linux-rtc@vger.kernel.org
Subject: Automatical handling of /sys/class/rtc/rtcN/offset
Date: Tue, 26 May 2020 21:57:50 +0300	[thread overview]
Message-ID: <810d81d9-847d-a849-bf8e-49ea59ba6b83@gmail.com> (raw)

Dear all,

I have found that my RTC  (M41T00) is capable to make precise 
compensation of offset in the Control register.

Its driver, rtc-ds1307.c has support for such offset compensation and 
provide the /sys/class/rtc/rtc0/offset file.

Compensation tested and operate as expected, when I manually read/write 
offset value (in PPB) from/into the /sys/class/rtc/rtc0/offset file.

Does handling of such RTC offset already automatized somehow instead of 
doing this manually?

I ask for community, because do not want to invent another one wheel if 
there are something already implemented for such purpose.

Best wishes.
--
Igor Plyatov

             reply	other threads:[~2020-05-26 18:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-26 18:57 Igor Plyatov [this message]
2020-05-27 23:06 ` Automatical handling of /sys/class/rtc/rtcN/offset Alexandre Belloni
2020-05-28  5:56   ` Igor Plyatov

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=810d81d9-847d-a849-bf8e-49ea59ba6b83@gmail.com \
    --to=plyatov@gmail.com \
    --cc=linux-rtc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).