From patchwork Wed Sep 2 02:57:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 52952 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 3382E2157D for ; Wed, 2 Sep 2015 02:58:10 +0000 (UTC) Received: by wicuu12 with SMTP id uu12sf1110984wic.2 for ; Tue, 01 Sep 2015 19:58:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=MB1ST7Kjdcl5jwTA5bps1Xt3TnH5llzUPxVYJogHItQ=; b=NVPvAjZSDHlJz35DOsNoVWJ94g6t8YFwFnkL+joOYl8taNxk3G3AWVTmAw7+OeCP2E Xz1SIzHR4NUC3CTur7BjU+NdwtBu1t/L8JuLRJl5QFLzWI0RVqjmmxrOk2H/G7pENs2v fphKRsNVfO/sKinqrVdIeA6QFI+wFpA9U54HH5+H2b3ZozK4Fh+VvRLZHzN0izX5HFc1 nJT6nRu7kmhpvaWbUhbi68lm/fmm1jHQYGZbTi4SttSoUNJuGOUwsXdU9Ja0N+q29/y/ WV+IdD/82fig/BGTR7fxy6ft7b1HQkAg7mZmhLpi0L2wm5fQg/xSOEPKU56txs6Uyvt0 i2tA== X-Gm-Message-State: ALoCoQmltmMCDdVJ/2yQKXitIyYGRxzsijXVOEWYm/E2u1m5pMcRkLaUr/L0QR9Q9E3lwPKdCcZm X-Received: by 10.112.167.201 with SMTP id zq9mr8577380lbb.2.1441162689424; Tue, 01 Sep 2015 19:58:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.1 with SMTP id g1ls31164lag.46.gmail; Tue, 01 Sep 2015 19:58:09 -0700 (PDT) X-Received: by 10.152.120.74 with SMTP id la10mr14316017lab.37.1441162689266; Tue, 01 Sep 2015 19:58:09 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id m5si18341956lam.100.2015.09.01.19.58.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2015 19:58:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbcjc2 with SMTP id jc2so10315465lbc.0 for ; Tue, 01 Sep 2015 19:58:08 -0700 (PDT) X-Received: by 10.112.198.202 with SMTP id je10mr2629420lbc.86.1441162688812; Tue, 01 Sep 2015 19:58:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp248927lbb; Tue, 1 Sep 2015 19:58:07 -0700 (PDT) X-Received: by 10.66.236.74 with SMTP id us10mr52478753pac.64.1441162687657; Tue, 01 Sep 2015 19:58:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jj8si13384929pac.179.2015.09.01.19.58.06; Tue, 01 Sep 2015 19:58:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751908AbbIBC6E (ORCPT + 28 others); Tue, 1 Sep 2015 22:58:04 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36195 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbbIBC6C (ORCPT ); Tue, 1 Sep 2015 22:58:02 -0400 Received: by pacwi10 with SMTP id wi10so16071517pac.3 for ; Tue, 01 Sep 2015 19:58:01 -0700 (PDT) X-Received: by 10.68.202.72 with SMTP id kg8mr51813901pbc.42.1441162681011; Tue, 01 Sep 2015 19:58:01 -0700 (PDT) Received: from localhost.localdomain (li755-73.members.linode.com. [106.185.44.73]) by smtp.gmail.com with ESMTPSA id m4sm19710259pda.90.2015.09.01.19.57.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Sep 2015 19:58:00 -0700 (PDT) From: Leo Yan To: Michael Turquette , Stephen Boyd , Jorge Ramirez-Ortiz , Zhangfei Gao , Bintian Wang , Haojian Zhuang , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Kevin Hilman , Wei Xu Cc: Leo Yan Subject: [PATCH] clk: Hi6220: separately build stub clock driver Date: Wed, 2 Sep 2015 10:57:47 +0800 Message-Id: <1441162667-25532-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The previous code, kernel builds Hi6220's common clock driver and stub clock driver together. Stub clock driver has introduced the dependency with CONFIG_MAILBOX, so kernel will not build Hi6220's common clock driver due ARM64's defconfig have not enabled CONFIG_MAILBOX by default. So separately build stub clock driver and common clock driver for Hi6220; and only let stub clock driver has the dependency with CONFIG_MAILBOX. Signed-off-by: Leo Yan Tested-by: Kevin Hilman --- drivers/clk/hisilicon/Kconfig | 8 +++++++- drivers/clk/hisilicon/Makefile | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig index 2c16807..e434854 100644 --- a/drivers/clk/hisilicon/Kconfig +++ b/drivers/clk/hisilicon/Kconfig @@ -1,6 +1,12 @@ config COMMON_CLK_HI6220 bool "Hi6220 Clock Driver" - depends on (ARCH_HISI || COMPILE_TEST) && MAILBOX + depends on ARCH_HISI || COMPILE_TEST default ARCH_HISI help Build the Hisilicon Hi6220 clock driver based on the common clock framework. + +config STUB_CLK_HI6220 + bool "Hi6220 Stub Clock Driver" + depends on COMMON_CLK_HI6220 && MAILBOX + help + Build the Hisilicon Hi6220 stub clock driver. diff --git a/drivers/clk/hisilicon/Makefile b/drivers/clk/hisilicon/Makefile index 4a1001a..74dba31 100644 --- a/drivers/clk/hisilicon/Makefile +++ b/drivers/clk/hisilicon/Makefile @@ -7,4 +7,5 @@ obj-y += clk.o clkgate-separated.o clkdivider-hi6220.o obj-$(CONFIG_ARCH_HI3xxx) += clk-hi3620.o obj-$(CONFIG_ARCH_HIP04) += clk-hip04.o obj-$(CONFIG_ARCH_HIX5HD2) += clk-hix5hd2.o -obj-$(CONFIG_COMMON_CLK_HI6220) += clk-hi6220.o clk-hi6220-stub.o +obj-$(CONFIG_COMMON_CLK_HI6220) += clk-hi6220.o +obj-$(CONFIG_STUB_CLK_HI6220) += clk-hi6220-stub.o