From patchwork Fri Jul 21 20:56:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9857679 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 7B3BF60392 for ; Fri, 21 Jul 2017 20:56:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5415A2863B for ; Fri, 21 Jul 2017 20:56:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4790F28658; Fri, 21 Jul 2017 20:56:41 +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 C2A2B2863B for ; Fri, 21 Jul 2017 20:56:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 60EEE6E8F4; Fri, 21 Jul 2017 20:56:38 +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 [217.72.192.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id EAE886E8F4 for ; Fri, 21 Jul 2017 20:56:35 +0000 (UTC) Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0MJnBU-1dZlR11k9c-001AiH; Fri, 21 Jul 2017 22:56:27 +0200 From: Arnd Bergmann To: Philipp Zabel Subject: [PATCH] [RESEND] gpu: ipu-v3: add DRM dependency Date: Fri, 21 Jul 2017 22:56:19 +0200 Message-Id: <20170721205625.3375683-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:Bb237OXSUPcRgxakWWGJ+H4TVmuhjHomO+yHvlDUMrYPFASKQ3t 82yFXb4BEmO66e3RZG1dQmGFZy5YXqLzUKvH2mKTPxOk3ShnU7y7IrGb/BmpYEvSS2e57kX Ve+v8bA5MisVcI2whfSdU6Fw2oexyMwGQJ0SNguAGbbEtmm1ZJSMK9JoCXckVO9ytfdm1tU 75HU41nVoKeGZ7A9PMumg== X-UI-Out-Filterresults: notjunk:1; V01:K0:INFp7eqmdeY=:wy+956MU+A/aL2zkdewOUS VrbQhwJPKGynyVu/XA/FmXbz/nzvL0Wlkvs7wsoWUkF0SwDf90iM1dT4NIFysO/hfBD3Mu0iW zaKhKHnm/MOBJ3VxaVtxCG9r5Xy9rbGLRCinKNtszOjViNQrlEW0HBP9b5KFra144ljnx/kFC JnVaGvGtlPmZX7mTw2NT6ZwDy9jmYq6MgPz4FFMIdYYiFA5efN2V4glpiMiUJ6ILSmwQlQLbF e+eiXGPRJD2PtilxSF+lk0ZPEknZwXT09ePliuAakN59rIKhHqiF7EayF4nPTMUqL2O1LtYD7 z5xTRywEqeovew0HXekCaMXo2nuf+HCvHJAHpxUL/OdygkFsT/QNGxiL4FgWcgW5U+zKKzq0r Vmo/AB2VjfiBhArbX9c7QlqVmN7eylpdS1GtkZ0aP7O1DsK+QB/X3pgODIYMR+ZZwjFiYOxuH yL8kcssECLch/evNAnmVjRMql6uDVYHVYgO9YYjtrHgkSsCENRJp/ISb86atcVjbkN609TCOT PPxnUbGapYjwVb51/RIj6HNAkdUIlqB+1XfhnfR2s7iRMYyVdDTWjnn3afC9uxzn0Vwh1Ep1x rHXX+m9L1VW8vgD7XSZ8Q+Ysf9msliISxWSOuLMVy+xppkF3xN7lPXQ+e8nDHboBn0zb9dtl/ Nb7mFairk3SCDj0CFprek2crzz0fLiWdbhKWHdrNAkRz0IhsZO4ax+83MtcFUkWBiq2AwmNDt IZZE4pjX3x8PeDtEpy2Aj0eqXzCy7PdzSSaOtA== Cc: Arnd Bergmann , Daniel Vetter , Stephen Boyd , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.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 The new PRE/PRG driver code causes a link failure when DRM is disabled: drivers/gpu/ipu-v3/ipu-pre.o: In function `ipu_pre_configure': ipu-pre.c:(.text.ipu_pre_configure+0x18): undefined reference to `drm_format_info' drivers/gpu/ipu-v3/ipu-prg.o: In function `ipu_prg_format_supported': ipu-prg.c:(.text.ipu_prg_format_supported+0x8): undefined reference to `drm_format_info' Adding a Kconfig dependency on DRM means we don't run into this problem any more. This might not be the best solution though, as the ipu seems to have been intentionally kept separate from DRM in the past. Fixes: ea9c260514c1 ("gpu: ipu-v3: add driver for Prefetch Resolve Gasket") Link: https://patchwork.kernel.org/patch/9636665/ Signed-off-by: Arnd Bergmann --- Originally sent on March 21, but got no reply for it. Resending unchanged as it is still needed in v4.13-rc1 --- drivers/gpu/ipu-v3/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/ipu-v3/Kconfig b/drivers/gpu/ipu-v3/Kconfig index 08766c6e7856..f8b200801408 100644 --- a/drivers/gpu/ipu-v3/Kconfig +++ b/drivers/gpu/ipu-v3/Kconfig @@ -1,6 +1,7 @@ config IMX_IPUV3_CORE tristate "IPUv3 core support" depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM + depends on DRM select GENERIC_IRQ_CHIP help Choose this if you have a i.MX5/6 system and want to use the Image