From patchwork Mon Jan 15 16:14:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10164709 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 075AA601C0 for ; Mon, 15 Jan 2018 16:15:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EABC6274D0 for ; Mon, 15 Jan 2018 16:14:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD2122886F; Mon, 15 Jan 2018 16:14:59 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6E349274D0 for ; Mon, 15 Jan 2018 16:14:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3770789F85; Mon, 15 Jan 2018 16:14:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by gabe.freedesktop.org (Postfix) with ESMTPS id CE1B689F77; Mon, 15 Jan 2018 16:14:56 +0000 (UTC) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lxbix-1evYh31FJj-017B6L; Mon, 15 Jan 2018 17:14:46 +0100 From: Arnd Bergmann To: Rob Clark Subject: [PATCH 2/2] drm/msm/adreno: fix nvmem related link error Date: Mon, 15 Jan 2018 17:14:05 +0100 Message-Id: <20180115161431.803248-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180115161431.803248-1-arnd@arndb.de> References: <20180115161431.803248-1-arnd@arndb.de> X-Provags-ID: V03:K0:ZtPKQ2aEagfeH9NZgUE456Rh+11KhQNqTu2obIzgc3DltfGZWyI sceVtweX9bl7Mn34CwCJm+jL6D6ByroMo6uHNKR5jsBwfY1WloPrEPwhhbaMrdg+ZgmJnwa FLgkTZOpJs7pF5bWW7z8HK0P1OGwdXYqUBoBYU4xzN6vxScGOc31oHHcVT/8cbYTi8WJ91n tAWmnl/I9qUac+Fm7Ldrw== X-UI-Out-Filterresults: notjunk:1; V01:K0:2s0AXqFgJyA=:nbdVquWCb3ua8U1qYOZOKv HFhaOkpIlNDKMOOVZqTi/4hInRji5KPTmgnQlNT2VMsSNXpujdC9K4GdxXWdq1j/Vu84D6O60 s3hia376HRMeyZDV19p4og9uSEYlf+3OfJGUiuMDzSXiM1k/S6eGSuJ1pvezMmfURR6CRV6ys M4QY8QrTwWISlSBBo6yXG1Tlr3ymIl+zwpXicAK99cV/cJUDjeOWfF4+B714bM7SPI0EVRH4t sHhj3/iw8zBv1NvP/bjMvQ9CFYotBTGQWquXsZqYvGC3jzRFLIZt4mo9KSh3er/wdZUhTVbfQ rTuq7GF/XEUO27DWVTIcw5jQuu41RgLPizIAa+nKsHAFugLE4dOhBk8tnmm1cbwK4+J1bXPbz szWaCS7hehkGGLLI4F5YnOYtDb1ke5C7wrlqmEX3xgkXVm8zPCpGf6+1BywEdCo5CGg/FDB29 PJYAJelSa0pMxg6YN+xGnh2TP+xdD0vOO8I7AaV173mpTjZCMWohqvESWOENYOVcel2azWH0e l3uPs46innJAsyLRhfaj/JUo0bxg+plJkcTyMX9B+PSbvWvkXL3j21tlz65xB/Zpczg2miBRh OM7FnDIZtxRrYM0YMWAuxjoRCfNgJF0h5kf1RIRJj8W0UGuwk2SlnqXR3zBUUnES2prhbfkd1 Cr4Ms2Zzo7V8pRDxR/7w16sw6Qe52k65zOyeP0tcKzXlzhJddAI+0D/5mVeRIgA3Rr+Lj1Xjk SJloqyAcWn85A2Iua6bIrVc6WQH8piI+Sv6h5g== Cc: linux-fbdev@vger.kernel.org, Arnd Bergmann , Wolfram Sang , David Airlie , linux-arm-msm@vger.kernel.org, Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, Bjorn Andersson , Srinivas Kandagatla , linux-i2c@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP When NVMEM is configured as a loadable module, and adreno is built-in, we get a link failure: drivers/gpu/drm/msm/adreno/a5xx_gpu.o: In function `a5xx_gpu_init': a5xx_gpu.c:(.text+0x15cc): undefined reference to `nvmem_cell_get' a5xx_gpu.c:(.text+0x15da): undefined reference to `nvmem_cell_read' a5xx_gpu.c:(.text+0x15e4): undefined reference to `nvmem_cell_put' This adds a Kconfig dependency to enforce valid configurations, when NVMEM is a loadable module, adreno now has to also be one. The code seems to deal fine with nvmem being completely disabled, it will just not set the right speed bin then, so we don't need a hard dependency. Fixes: f56d9df656c4 ("drm/msm/adreno: Read the speed bins for a5xx targets") Signed-off-by: Arnd Bergmann Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig index 99d39b2aefa6..74fb1c816da9 100644 --- a/drivers/gpu/drm/msm/Kconfig +++ b/drivers/gpu/drm/msm/Kconfig @@ -4,6 +4,7 @@ config DRM_MSM depends on DRM depends on ARCH_QCOM || (ARM && COMPILE_TEST) depends on OF && COMMON_CLK + depends on NVMEM || !NVMEM depends on MMU select QCOM_MDT_LOADER if ARCH_QCOM select REGULATOR