Messages in this thread | | | Subject | Re: [PATCH v3] rtc: ds1307: generalise ram size and offset | From | Austin Boyle <> | Date | Fri, 3 Feb 2012 11:28:24 +1300 |
| |
Hi Wolfram,
I have been thinking about this some more but maybe I don't understand the problem...
> > ... that nvram is static and we are changing it. Yeah, it is very unlikely but > > if we have two RTC with different nvram sizes, one of them will not work correctly. > I see the issue. Am I right that it would only occur when you have two > I2C buses, each with one of the RTC chips supported by this driver?
On my system, it looks like each rtc would have it's own directory e.g.: # ls /sys/class/rtc rtc0 # cat /sys/class/rtc/rtc0/device/name ds1388 # ls /sys/class/rtc/rtc0/device/ driver modalias name nvram rtc subsystem uevent
So if you have multiple RTCs, even of the same type, they would be in rtc0, rtc1, rtc2
Since they each have their own nvram, does it matter if the size is changed?
Cheers, Austin.
| |