Linux RTC
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
Cc: rtc-linux@googlegroups.com
Subject: [rtc-linux] Re: [RFC] rtc: ds1307: add square wave output from ds1308
Date: Mon, 31 Jul 2017 16:02:00 +0200	[thread overview]
Message-ID: <20170731140200.4h4wych32hdj7pu6@piout.net> (raw)
In-Reply-To: <20170731133013.22347-1-sean.nyekjaer@prevas.dk>

Hi Sean,

The mailing list address changed, can you resend there. Also, please
copy the CCF maintainers.

A quick comment below:

On 31/07/2017 at 15:30:13 +0200, Sean Nyekjaer wrote:
> -	ret = ds3231_clks_register(ds1307);
>  	if (ret) {
>  		dev_warn(ds1307->dev, "unable to register clock device %d\n",
>  			 ret);
> @@ -1545,6 +1708,11 @@ static int ds1307_probe(struct i2c_client *client,
>  		}
>  		break;
>  	case ds_1308:
> +		/* disable sqw when driven from battery backup */
> +		if (ds1307->regs[DS1307_REG_CONTROL] & DS1308_BIT_BBCLK)
> +			i2c_smbus_write_byte_data(client, DS1307_REG_CONTROL,
> +					ds1307->regs[DS1307_REG_CONTROL]
> +					& ~DS1308_BIT_BBCLK);

That should not be needed, the CCF will disable any unused clock.

>  	case ds_1338:
>  		/* clock halted?  turn it on, so clock can tick. */
>  		if (tmp & DS1307_BIT_CH)
> -- 
> 2.13.3
> 

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

      reply	other threads:[~2017-07-31 14:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-31 13:30 [rtc-linux] [RFC] rtc: ds1307: add square wave output from ds1308 Sean Nyekjaer
2017-07-31 14:02 ` Alexandre Belloni [this message]

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=20170731140200.4h4wych32hdj7pu6@piout.net \
    --to=alexandre.belloni@free-electrons.com \
    --cc=rtc-linux@googlegroups.com \
    --cc=sean.nyekjaer@prevas.dk \
    /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