Linux RTC
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: linux-rtc@vger.kernel.org
Subject: Re: [PATCH] rtc: core: let rtc_set_time properly populate element wday
Date: Mon, 28 Aug 2017 20:13:25 +0200	[thread overview]
Message-ID: <9a11b823-abe0-6611-9d97-75e2a2ec7745@gmail.com> (raw)
In-Reply-To: <20170828075458.4cdi7pet3yxeskqc@piout.net>

Am 28.08.2017 um 09:54 schrieb Alexandre Belloni:
> On 27/08/2017 at 21:35:34 +0200, Heiner Kallweit wrote:
>> When having a look at the MCP794XX datasheet it became clear why the
>> mentioned weekday-related patch was submitted. This chip is quite
>> strange regarding the possible alarm match conditions:
>>
>> ALMxMSK<2:0>: Alarm Mask bits
>> 000 = Seconds match
>> 001 = Minutes match
>> 010 = Hours match (logic takes into account 12-/24-hour operation)
>> 011 = Day of week match
>> 100 = Date match
>> 101 = Reserved; do not use
>> 110 = Reserved; do not use
>> 111 = Seconds, Minutes, Hour, Day of Week, Date and Month
>>
>> When not having a proper weekday you get only either seconds or
>> minutes or hours or date match.
>>
>> So it's best to ensure that the weekday is properly populated.
>> However we can do this in the driver and don't have to touch the core.
>>
> 
> Can you do that only for mcp794xx? I received one earlier this month and
> I'll separate the driver from rtc-ds1307.c at some point.
> 
Sure, I'll submit a patch for this. Separating the driver for mcp794xx may
not be needed as it is not that different from the other chips supported
by this driver. Once I have my patch series proposal towards a ds1307_lib
in a little more clean state this should become clearer.

Regards, Heiner

> BTW, I've rebased and pushed some cleanup for this driver in:
> https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/log/?h=rtc-ds1307
> 
> Can you base yourself on that?
> 
OK

> Thanks,
> 

  reply	other threads:[~2017-08-28 18:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-26 19:16 [PATCH] rtc: core: let rtc_set_time properly populate element wday Heiner Kallweit
2017-08-26 19:56 ` Alexandre Belloni
2017-08-26 19:59   ` Alexandre Belloni
2017-08-27 12:39     ` Heiner Kallweit
2017-08-27 19:35       ` Heiner Kallweit
2017-08-28  7:54         ` Alexandre Belloni
2017-08-28 18:13           ` Heiner Kallweit [this message]
2017-08-28 18:54             ` Alexandre Belloni

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=9a11b823-abe0-6611-9d97-75e2a2ec7745@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=alexandre.belloni@free-electrons.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