rtc-ppc
Quoted 6 lines · Alessandro Zummo
I was checking a few drivers for compliance and noticed that
the rtc-ppc driver registers a platform device instead of a platform driver.Wouldn't be possible to have the ppc arch doing the device
thing and cleanup the driver?
It would be possible, yes -- but it would be better to have the various PPC platforms just register RTC-class devices _directly_, and ditch the RTC bits from ppc_md altogether.
I think we're waiting until the RTC class works with NTP before we can contemplate that, though.
Signature · 2 lines
David Woodhouse Open Source Technology Centre [email protected] Intel Corporation
Quoted 3 lines · On Wed, 05 Nov 2008 23:18:46 +0100 David Woodhouse <[email protected]> wrote:
It would be possible, yes -- but it would be better to have the various PPC platforms just register RTC-class devices _directly_, and ditch the RTC bits from
ppc_mdaltogether.
That would be real fine :)
Quoted 2 lines
I think we're waiting until the RTC class works with NTP before we can contemplate that, though.
That will be a long wait, I don't think anyone volunteered for the ntp code. I've been told some platforms are already using the class.
Signature · 6 lines
Best regards, Alessandro Zummo, Tower Technologies - Torino, Italy http://www.towertech.it
Quoted 8 lines · David Woodhouse
Quoted 6 lines · Alessandro Zummo
I was checking a few drivers for compliance and noticed that
the rtc-ppc driver registers a platform device instead of a platform driver.Wouldn't be possible to have the ppc arch doing the device
thing and cleanup the driver?
Quoted 6 lines
It would be possible, yes -- but it would be better to have the various PPC platforms just register RTC-class devices _directly_, and ditch the RTC bits from
ppc_mdaltogether.I think we're waiting until the RTC class works with NTP before we can contemplate that, though.
Yeah, I tried writing some ppc_md hooks which backended onto the rtc class drivers as an interim measure, but the hooks are called from places the rtc class stuff can't safely be called (too early, IIRC, but it's a while since I checked).
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 7 lines · On Thu, 6 Nov 2008 10:08:25 +1100 David Gibson <[email protected]>…
Quoted 2 lines
I think we're waiting until the RTC class works with NTP before we can contemplate that, though.
Yeah, I tried writing some
ppc_mdhooks which backended onto the rtc class drivers as an interim measure, but the hooks are called from places the rtc class stuff can't safely be called (too early, IIRC, but it's a while since I checked).
I think the rtc drivers are too heterogeneous to have a valid ntp strategy.
Signature · 6 lines
Best regards, Alessandro Zummo, Tower Technologies - Torino, Italy http://www.towertech.it