From patchwork Tue Jun 20 20:12:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9800157 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A2C9E600C5 for ; Tue, 20 Jun 2017 20:13:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98F011FF4A for ; Tue, 20 Jun 2017 20:13:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D12726861; Tue, 20 Jun 2017 20:13:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C92E1FF4A for ; Tue, 20 Jun 2017 20:13:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751135AbdFTUNC (ORCPT ); Tue, 20 Jun 2017 16:13:02 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:49692 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbdFTUNB (ORCPT ); Tue, 20 Jun 2017 16:13:01 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MP3ch-1dTCwm1B83-006LJ0; Tue, 20 Jun 2017 22:12:51 +0200 From: Arnd Bergmann To: Santosh Shilimkar , Michael Turquette , Stephen Boyd Cc: Arnd Bergmann , Tero Kristo , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH] clk: keystone: TI_SCI_PROTOCOL is needed for clk driver Date: Tue, 20 Jun 2017 22:12:37 +0200 Message-Id: <20170620201249.145468-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:gEqyvlW5w0tKZOiCAUbpZdCy17z7XKeal/mQ12K4RpNaU+HPluz jH0qYfvm9AMuhMVTnLnYIZABSlegNRLwXTi/frnp24Hy0HNjJvVSr1H8POZ1skGZgSu8uJH tSPCRwy8rDslasTTPXmayoc0OR4z1wLlnrZo5BeWJ6wo7/dyoxj/cJuoqLVD57nmWJ6oVEm hcfOXv3nSRMyiFWAP1A5w== X-UI-Out-Filterresults: notjunk:1; V01:K0:UMynUdpZXJ8=:71u8ZangVh1/wsPEgpUCC0 Ye6Gwy7JOoRQdkypEMtP0+9FOEQKze+tCKmfugT+9Z9b8RlAYBl70/hqC6Dq30u5ijwLVR2yf Bqh4tgfC3SiGFa71Zd7K6NAeDap2fyCbPtdqvHTd0xIk1OEvR8hPGo5igswsIJHYW6xwkIUSy 4EV8JQRMKGq/pHlmDyWy13Jmz/AJDVIiIO3gXAUluykoDM4r4ot2aWdfQvlDAdm+6AvzWpV/H RaJ2JKfE4gt7nq/cp4TnB/B5f0REZpoP6h3/7py6GDxqRJlDXBbcKWmwtZfUvtqromvDoeZ1K uLGqYsi5tTKf+++Wgm9yE93H5jk2aFgwSSd3ZpQOxhFcYlOtNFfu9ND2Xx9ZLpGf1YU4njHhg xX0CLCkwDVwc3eOLmnkuMr874OEuA45bbZ2F/jT2gidfOAi7q1dsZrQUzP5RfXzJ03GSBuI2C tWqSovuSQvJuiu/kco6BbLN8kdfg8yie3opIQgN0mBxp4L59skgcq48sUiNnyfwyS8zEwRklI pqmhweJv20gnWKABbMaIg+jUBnjIwQcBFoWvrtPowxMFwlKL0KxOsssVrnAtQWkDtyaMBd5Hc ssFmaLQ1YKu0eQNN6w9WzCgOfsCE3PZyetUkvJnQW6WzKOZ9hJ7aolnBbcGcOrOBP6EsXmFWb HimJicOF2Lqj3qEjzQAFYCj35zOlvZE6gR57AWjTsG3pXGi/+HzdDyqsCfmbzSFQZZUI= Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CONFIG_COMPILE_TEST allows building a configuration without TI_SCI_PROTOCOL, which then fails to link: drivers/clk/keystone/sci-clk.o: In function `ti_sci_clk_probe': sci-clk.c:(.text.ti_sci_clk_probe+0x4c): undefined reference to `devm_ti_sci_get_handle' This makes it a hard dependency. Right now, that means we can't actually compile-test the driver unless ARCH_KEYSTONE is set as well, but we can fix that by allowing TI_MESSAGE_MANAGER to be selected for COMPILE_TEST as well. Fixes: b745c0794e2f ("clk: keystone: Add sci-clk driver support") Signed-off-by: Arnd Bergmann Acked-by: Tero Kristo --- drivers/clk/keystone/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/keystone/Kconfig b/drivers/clk/keystone/Kconfig index 1fea328a36fe..7e9f0176578a 100644 --- a/drivers/clk/keystone/Kconfig +++ b/drivers/clk/keystone/Kconfig @@ -8,7 +8,8 @@ config COMMON_CLK_KEYSTONE config TI_SCI_CLK tristate "TI System Control Interface clock drivers" depends on (ARCH_KEYSTONE || COMPILE_TEST) && OF - default TI_SCI_PROTOCOL + depends on TI_SCI_PROTOCOL + default ARCH_KEYSTONE ---help--- This adds the clock driver support over TI System Control Interface. If you wish to use clock resources from the PMMC firmware, say Y.