Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1303454

Re: [PATCH 3/3] RTC/PCF85063: fix time/date setting

From Juergen Borleis <jbe@pengutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH 3/3] RTC/PCF85063: fix time/date setting
Date 2016-01-07 11:20 +0100
Message-ID <qOfPH-6JB-5@gated-at.bofh.it> (permalink)
References <qD4kW-56d-13@gated-at.bofh.it> <qD4kX-56d-17@gated-at.bofh.it>
Organization Pengutronix e.K.

Show all headers | View raw


Hi Alexandre,

sorry, missed your comment. Please keep me on CC since I'm not subscribed to 
the list.

> > When setting a new time/date the RTC's clock must be stopped first, in
> > order to write the time/date registers in an atomic manner.
> > So, this change stops the clock first and then writes the time/date
> > registers and the clock control register (to re-enable the clock) in one
> > turn.
>
> I'd have the same comment for that patch. Using
> i2c_smbus_write_byte_data and i2c_smbus_write_block_data would make the
> code clearer and also more robust because it takes care of
> retransmissions for example.

Okay. Will have a look.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |
--
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 linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 3/3] RTC/PCF85063: fix time/date setting Juergen Borleis <jbe@pengutronix.de> - 2016-01-07 11:20 +0100

csiph-web