From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 00/12] introduce support for early platform drivers Date: Thu, 31 May 2018 07:16:45 -0700 Message-ID: <20180531141645.GM5705@atomide.com> References: <20180511162028.20616-1-brgl@bgdev.pl> <20180530194032.982.41562@harbor.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Geert Uytterhoeven Cc: Rob Herring , Mark Rutland , Rich Felker , Michael Turquette , Sekhar Nori , Frank Rowand , "open list:GENERIC INCLUDE/ASM HEADER FILES" , Yoshinori Sato , Kevin Hilman , Bartosz Golaszewski , "Rafael J . Wysocki" , Magnus Damm , Andy Shevchenko , Jiri Slaby , devicetree , David Lechner , Arnd Bergmann , Marc Zyngier , Johan Hovold List-Id: linux-arch.vger.kernel.org * Geert Uytterhoeven [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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from muru.com ([72.249.23.125]:45468 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755274AbeEaOQv (ORCPT ); Thu, 31 May 2018 10:16:51 -0400 Date: Thu, 31 May 2018 07:16:45 -0700 From: Tony Lindgren Subject: Re: [PATCH 00/12] introduce support for early platform drivers Message-ID: <20180531141645.GM5705@atomide.com> References: <20180511162028.20616-1-brgl@bgdev.pl> <20180530194032.982.41562@harbor.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Geert Uytterhoeven Cc: Rob Herring , Mark Rutland , Rich Felker , Michael Turquette , Sekhar Nori , Frank Rowand , "open list:GENERIC INCLUDE/ASM HEADER FILES" , Yoshinori Sato , Kevin Hilman , Bartosz Golaszewski , "Rafael J . Wysocki" , Magnus Damm , Andy Shevchenko , Jiri Slaby , devicetree , David Lechner , Arnd Bergmann , Marc Zyngier , Johan Hovold , Thomas Gleixner , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Daniel Lezcano , Stephen Boyd , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Peter Rosin Message-ID: <20180531141645.6jjBiX8drX2eKtVtCxIZ98OotBOT7yMIAoDCLtUFVAE@z> * Geert Uytterhoeven [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