From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brandon Anderson Subject: [PATCH V2 1/4] ACPI/ARM: Load fixed-clk module early Date: Fri, 22 Nov 2013 12:12:41 -0600 Message-ID: <1385143964-22938-2-git-send-email-brandon.anderson@amd.com> References: <1385143964-22938-1-git-send-email-brandon.anderson@amd.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:46444 "EHLO tx2outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755526Ab3KVSPd (ORCPT ); Fri, 22 Nov 2013 13:15:33 -0500 In-Reply-To: <1385143964-22938-1-git-send-email-brandon.anderson@amd.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux@arm.linux.org.uk, rjw@rjwysocki.net, linaro-acpi@lists.linaro.org, linux-acpi@vger.kernel.org Cc: Brandon Anderson An AMBA device will be probed once two things have occured: 1) ACPI has registered a device, and 2) the driver has registered itself as an AMBA driver. Since several drivers register themselves very early on, the probe will happen as soon as ACPI registers the device. If a device depends on a clock, the clock must be probed before ACPI registers the device. This means that the clock definition must be encountered first in the DSDT file, and the clock driver must already be loaded when this happens. There are other potential solutions, with this solution registering the clock driver very early in the boot process to avoid changes to other drivers. Signed-off-by: Brandon Anderson --- drivers/clk/clk-fixed-rate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index 226cefb..778291e 100644 --- a/drivers/clk/clk-fixed-rate.c +++ b/drivers/clk/clk-fixed-rate.c @@ -174,5 +174,5 @@ static int __init fixed_clk_init(void) * fixed clock will used for AMBA bus, UART and etc, so it should be * initialized early enough. */ -subsys_initcall(fixed_clk_init); +postcore_initcall(fixed_clk_init); #endif -- 1.7.9.5