From f0667834f1bc85e52595e80b9698f9e010a4a091 Mon Sep 17 00:00:00 2001 From: Abhilash Kesavan Date: Fri, 21 Dec 2012 09:44:39 +0530 Subject: [PATCH] CHERRY-PICK: exynos5: asv: Call the core ASV code early Change the priority of ASV code initialization. The core ASV code finds the speed group, lot id and exposes it to various consumer drivers like busfreq, G3D and CPUfreq. Among these, the G3D driver is getting called before the core code and thus is always getting the ASV speed group as 0. Fix this by calling the core ASV early. BUG=chrome-os-partner:16796 TEST=Checked that G3D, ARM and INT drivers are all getting the same ASV group on 2 different boards (1 MP and 1 PVT). Also, verified that the voltages match that speed group. Change-Id: Ib2ba155cdd968f7ca74d122d6716fb0a9a228c99 Original-Change-Id: I1ca234a770bbd8b2d590a83377ee44527327066b Signed-off-by: Abhilash Kesavan Reviewed-by: Doug Anderson Commit-Queue: Doug Anderson Tested-by: Doug Anderson (cherry picked from commit 0947da07a809fe38b056ca0618a071cbb198a0e9) Reviewed-on: https://gerrit.chromium.org/gerrit/40952 Reviewed-by: Olof Johansson --- arch/arm/mach-exynos/asv-5250.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/asv-5250.c b/arch/arm/mach-exynos/asv-5250.c index b953de8fcbb73..508690d5cd9f1 100644 --- a/arch/arm/mach-exynos/asv-5250.c +++ b/arch/arm/mach-exynos/asv-5250.c @@ -469,4 +469,4 @@ exit: clk_disable(chipid_clk); return 0; } -device_initcall_sync(exynos5250_asv_init); +subsys_initcall_sync(exynos5250_asv_init); -- 2.39.5