Bug#782364: linux-image-3.16.0-4-armmp: please configure drivers for both Cubox i4pro real time clocks

Ian Campbell ijc at hellion.org.uk
Sat May 2 09:21:35 PDT 2015


On Sat, 2015-05-02 at 17:12 +0100, Russell King - ARM Linux wrote:
> On Sat, May 02, 2015 at 05:01:04PM +0100, Ian Campbell wrote:
> > So is your advice for a multi platform kernel supporting all Cubox
> > devices to just enable both and to sort out any syncing/naming etc in
> > userspace?
> 
> I don't see a problem locally, because I have both built in to my kernel:
> 
> hub 2-0:1.0: USB hub found
> hub 2-0:1.0: 1 port detected
> mousedev: PS/2 mouse device common for all mice
> rtc-pcf8523 0-0068: rtc core: registered rtc-pcf8523 as rtc0
> snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc1
> i2c /dev entries driver
> 
> and so the battery-backed one gets the primary RTC device.

We typically build RTCs statically (for this sort of reason) so it seems
like the right thing for us to do here is to build both in.

Does the battery backed one automatically get synced to the time based
wake up one too, or is that in userspace?

What I wasn't sure about was if both were =y whether the init order was
guaranteed across kernel versions etc. It sounds like you are saying it
will Just Work if we build both in, which is what I was hoping for.

> I guess the problem comes when you have them as modules, and then systemd
> or udev, or whatever init daemon flavour you're using can load the modules
> in a random order (or even in parallel) so you've no idea which RTC is
> which.

Right. 

> Yes, I believe this is a userspace problem, because:

[...]

Yes, ack.

Thanks,
Ian.




More information about the linux-arm-kernel mailing list