Re: [PATCH 00/12] introduce support for early platform drivers

From: Tony Lindgren
Date: Thu May 31 2018 - 10:16:57 EST


* Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> [180531 06:45]:
> Yes, they should all be drivers.
>
> Assuming clocksources, clockevents, or primary interrupt controllers are
> special, and thus forcing everyone to use OF_DECLARE for the whole
> subsystem, doesn't fly everywhere.
>
> Clockevents and interrupt controllers can have a module clock.
> All three can be part of a PM Domain, which requires a struct device to
> be handled properly.

I agree it sure would be nice to have all these as drivers. I believe
SoC specific clockevent using SoC specific clocks is the reason why some
clocks cannot currently be drivers.

Regards,

Tony