rtc-ppc

David Gibson david at gibson.dropbear.id.au
Thu Nov 6 10:08:25 EST 2008


On Wed, Nov 05, 2008 at 11:18:46PM +0100, David Woodhouse wrote:
> On Wed, 2008-11-05 at 02:19 +0100, Alessandro Zummo wrote:
> >   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.

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).

-- 
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



More information about the Linuxppc-dev mailing list