Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1276903 > unrolled thread
| Started by | Alexandre Belloni <alexandre.belloni@free-electrons.com> |
|---|---|
| First post | 2015-11-25 00:30 +0100 |
| Last post | 2015-11-25 00:30 +0100 |
| Articles | 1 — 1 participant |
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 6/9] rtc-pcf2123: avoid resetting the clock if possible Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-11-25 00:30 +0100
| From | Alexandre Belloni <alexandre.belloni@free-electrons.com> |
|---|---|
| Date | 2015-11-25 00:30 +0100 |
| Subject | Re: [PATCH 6/9] rtc-pcf2123: avoid resetting the clock if possible |
| Message-ID | <qyvc6-6mi-27@gated-at.bofh.it> |
On 04/11/2015 at 07:36:37 -0800, Joshua Clayton wrote :
> + ret = pcf2123_rtc_read_time(dev, &tm);
> + if (ret < 0)
> + return false;
> +
> + if (rtc_valid_tm(&tm) < 0) {
> + dev_err(dev, "retrieved date/time is not valid.\n");
> + return false;
> + }
> +
I would remove that test as basically, the date/time will only be valid
when OSC_HAS_STOPPED is not set.
--
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/
Back to top | Article view | linux.kernel
csiph-web