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


Groups > linux.kernel > #1720834

Re: [RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295

From Andrew Lunn <andrew@lunn.ch>
Newsgroups linux.kernel
Subject Re: [RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295
Date 2017-08-27 15:50 +0200
Message-ID <uj66R-8nM-15@gated-at.bofh.it> (permalink)
References <ugnnz-kh-3@gated-at.bofh.it> <ugnnz-kh-9@gated-at.bofh.it> <uhrIu-1Ej-25@gated-at.bofh.it> <uj3iF-6u0-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> Thanks. Did you read the RFC question in the cover letter as well and
> have any comments? Downstream has an rtc-base-year = <2014>; property
> that I had left out in this RFC and due to your ack not included in v2.
> 
> Should we default to 2014 in the driver and add an optional base-year
> property once we encounter a diverging device, or should we make it
> required from the beginning? I did not spot any other rtc binding with
> such a property and would appreciate a clarification.

Hi Andreas

From the perspective of the hardware, does it care what the base is?

A device using a different base will initially return the wrong
time. But once the correct time has been written back, it will be O.K.

This only becomes an issue if a device is used with different OSs,
which have different bases. Swapping back and forth between OSs then
becomes an issue.

KISS suggests not having a base in DT until it is actually
required. Since it is an additional property, it does not break
backwards compatibility when added.

	  Andrew

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295 Andreas Färber <afaerber@suse.de> - 2017-08-27 12:50 +0200
  Re: [RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295 Andrew Lunn <andrew@lunn.ch> - 2017-08-27 15:50 +0200
    Re: [RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295 Andreas Färber <afaerber@suse.de> - 2017-08-27 19:30 +0200
      Re: [RFC 1/3] dt-bindings: rtc: Add Realtek RTD1295 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-08-27 21:10 +0200

csiph-web