Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1271344 > unrolled thread
| Started by | Joshua Clayton <stillcompiling@gmail.com> |
|---|---|
| First post | 2015-11-17 16:40 +0100 |
| Last post | 2015-11-19 01:30 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 0/9] rtc-2123: access the clock offset feature Joshua Clayton <stillcompiling@gmail.com> - 2015-11-17 16:40 +0100
Re: [PATCH 0/9] rtc-2123: access the clock offset feature Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-11-17 17:30 +0100
Re: [PATCH 0/9] rtc-2123: access the clock offset feature Joshua Clayton <stillcompiling@gmail.com> - 2015-11-19 01:30 +0100
| From | Joshua Clayton <stillcompiling@gmail.com> |
|---|---|
| Date | 2015-11-17 16:40 +0100 |
| Subject | Re: [PATCH 0/9] rtc-2123: access the clock offset feature |
| Message-ID | <qvQwr-6RR-59@gated-at.bofh.it> |
On Wednesday, November 04, 2015 07:36:31 AM Joshua Clayton wrote: > Greetings, > This series was prompted by a need to adjust the clock rate of the rtc > The existing code performs a soft reset during probe, which wipes out > several registers including the offset register, which performs adjustments > to the clock rate. > > The first several patches are cleanup, with patch 5 and 6 avoiding the reset, > and patch 9 adding a nice sysfs interface to the clock offset. > > I know that this is not the only rtc to provide a programmable clock offset > I wonder if this interface would make a good addition to the rtc api? > > The rtc chips I have seen list their clock adjustments in parts per million. > I went with parts per billion, since the ppm listed was listed with a > fractional component. > > Joshua Clayton (9): > rtc-pcf2123: Document all registers and useful bits > rtc-pcf2123: clean up reads from the chip > rtc-pcf2123: clean up writes to the rtc chip > rtc-pcf2123: replace magic numbers with defines > rtc-pcf2123: put the chip reset into a function > rtc-pcf2123: avoid resetting the clock if possible > rtc-pcf2123: allow sysfs to accept hexidecimal > rtc-pcf2123: use sysfs groups > rtc-pcf2123: adjust the clock rate via sysfs > > drivers/rtc/rtc-pcf2123.c | 391 ++++++++++++++++++++++++++++++---------------- > 1 file changed, 257 insertions(+), 134 deletions(-) > > Any comments on this series? I realize now that I submitted it during the merge window, so it may have been overlooked. -- ~Joshua Clayton -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Alexandre Belloni <alexandre.belloni@free-electrons.com> |
|---|---|
| Date | 2015-11-17 17:30 +0100 |
| Message-ID | <qvRiP-7og-23@gated-at.bofh.it> |
| In reply to | #1271344 |
On 17/11/2015 at 07:30:48 -0800, Joshua Clayton wrote : > On Wednesday, November 04, 2015 07:36:31 AM Joshua Clayton wrote: > > Greetings, > > This series was prompted by a need to adjust the clock rate of the rtc > > The existing code performs a soft reset during probe, which wipes out > > several registers including the offset register, which performs adjustments > > to the clock rate. > > > > The first several patches are cleanup, with patch 5 and 6 avoiding the reset, > > and patch 9 adding a nice sysfs interface to the clock offset. > > > > I know that this is not the only rtc to provide a programmable clock offset > > I wonder if this interface would make a good addition to the rtc api? > > > > The rtc chips I have seen list their clock adjustments in parts per million. > > I went with parts per billion, since the ppm listed was listed with a > > fractional component. > > > > Joshua Clayton (9): > > rtc-pcf2123: Document all registers and useful bits > > rtc-pcf2123: clean up reads from the chip > > rtc-pcf2123: clean up writes to the rtc chip > > rtc-pcf2123: replace magic numbers with defines > > rtc-pcf2123: put the chip reset into a function > > rtc-pcf2123: avoid resetting the clock if possible > > rtc-pcf2123: allow sysfs to accept hexidecimal > > rtc-pcf2123: use sysfs groups > > rtc-pcf2123: adjust the clock rate via sysfs > > > > drivers/rtc/rtc-pcf2123.c | 391 ++++++++++++++++++++++++++++++---------------- > > 1 file changed, 257 insertions(+), 134 deletions(-) > > > > > Any comments on this series? > I realize now that I submitted it during the merge window, so it may have been overlooked. > I will have a few comments but I didn't review everything thoroughly yet. As you mentioned, you submitted during the merge window so this was not going to be in 4.4 anyway. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Joshua Clayton <stillcompiling@gmail.com> |
|---|---|
| Date | 2015-11-19 01:30 +0100 |
| Message-ID | <qwlgS-20q-13@gated-at.bofh.it> |
| In reply to | #1271384 |
On Tuesday, November 17, 2015 05:25:30 PM Alexandre Belloni wrote: > On 17/11/2015 at 07:30:48 -0800, Joshua Clayton wrote : > > On Wednesday, November 04, 2015 07:36:31 AM Joshua Clayton wrote: > > Any comments on this series? > > I realize now that I submitted it during the merge window, so it may have been overlooked. > > > > I will have a few comments but I didn't review everything thoroughly > yet. As you mentioned, you submitted during the merge window so this was > not going to be in 4.4 anyway. > > Thanks! I can relax since I know it is on your radar. I have responded my self to a couple of fat fingers in the commit messages. I am also in the process of testing the actual effects of the feature. One thing I'm not sure I have adequately described (and didn't really understand until I started testing) is that a positive value in the adjust register increases the average value of a second, so it makes the clock slower, while a negative adjustment makes it faster. This was counterintuitive to me. Not having deeply examined other rtc's with similar capabilities, I can't say whether this is the norm. -- ~Joshua Clayton -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web