From patchwork Fri Mar 30 05:38:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 149537 X-Patchwork-Delegate: galak@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 631E2B7021 for ; Fri, 30 Mar 2012 16:39:59 +1100 (EST) Received: from mail-iy0-f179.google.com (mail-iy0-f179.google.com [209.85.210.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 28757B6F98 for ; Fri, 30 Mar 2012 16:39:04 +1100 (EST) Received: by iakh37 with SMTP id h37so513571iak.38 for ; Thu, 29 Mar 2012 22:39:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=JYjaAesyK4PV8pf4PpSUoDqT2J5j1rkMuJhlXETOouc=; b=S3URyR3Z+WyCC3hYwm6diuX6+uX8VFCP+Wcw8fpICNmZFgsjEDLsDFHprk0TPR6tA2 pFCXYOGk8N9F2+MI03Le44wPuVjnwUOan3sM6uxRT2IMitVhMosOV0w/jLM9F/dTiFTm e3dCQQjAgCFtHCXUtrKOTO5FP1+hFmM3zcrRVSRoS9heJeM4qhxXp4ZZ1DnFyX/FLleU eF5ZK83347bBTdhP/WQE/a66E7UCmXqkc8NSNUw7NQfMf47X4nxLfXV7fj0kI9CqHXa8 6juxTFHqNw2Nr1tgBa1rnz6FTZB8l232Qojmu7f1ZJOyHu79IY189tJW3dCuZ3Z35nBg EYjA== MIME-Version: 1.0 Received: by 10.50.106.200 with SMTP id gw8mr588103igb.10.1333085941211; Thu, 29 Mar 2012 22:39:01 -0700 (PDT) Received: from localhost.localdomain ([58.208.96.125]) by mx.google.com with ESMTPS id xt2sm941296igb.6.2012.03.29.22.38.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Mar 2012 22:39:00 -0700 (PDT) From: Shawn Guo To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc: select PPC_CLOCK unconditionally for FSL_SOC Date: Fri, 30 Mar 2012 13:38:56 +0800 Message-Id: <1333085936-8977-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQkSTDAuX/7NJ9Csi1wbzLIKyhIq1njnVRF0Y0v/9YGaSULiO2bgpXKqgLM8lX269AwiEsBv Cc: alsa-devel@alsa-project.org, Shawn Guo , Timur Tabi X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Freescale PowerPC SoCs share a number of IP blocks with Freescale ARM/IMX SoCs, FlexCAN, SSI, FEC, eSDHC, USB, etc. There are some effort consolidating those drivers to make them work for both architectures. One outstanding difference between two architectures is ARM/IMX will turn off module clocks during platform initialization for power saving and expects drivers manage clocks using clk API, while PowerPC mostly does not do that, and thus does not always build in clk API. Listing all those driver Kconfig options in "select PPC_CLOCK if" seems not scalable for long term maintenance, and could easily introduce Kconfig recursive dependency. This patch chooses to select PPC_CLOCK unconditionally for FSL_SOC to always build clk API for PowerPC in. Signed-off-by: Shawn Guo --- arch/powerpc/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index feab3ba..63fa7fb 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -661,7 +661,7 @@ config SBUS config FSL_SOC bool select HAVE_CAN_FLEXCAN if NET && CAN - select PPC_CLOCK if CAN_FLEXCAN + select PPC_CLOCK config FSL_PCI bool