From patchwork Tue Mar 21 14:31:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9636663 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 7EA6560216 for ; Tue, 21 Mar 2017 14:31:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70AB92830A for ; Tue, 21 Mar 2017 14:31:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6395328342; Tue, 21 Mar 2017 14:31:32 +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 1A1F42830A for ; Tue, 21 Mar 2017 14:31:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E8A306E31E; Tue, 21 Mar 2017 14:31:29 +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.17.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id AD07B6E31E for ; Tue, 21 Mar 2017 14:31:28 +0000 (UTC) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MXp03-1ceX7A0Njr-00WqI6; Tue, 21 Mar 2017 15:31:19 +0100 From: Arnd Bergmann To: Philipp Zabel Subject: [PATCH] gpu: ipu-v3: add DRM dependency Date: Tue, 21 Mar 2017 15:31:04 +0100 Message-Id: <20170321143112.3348699-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:RBg1prIoso58bOEaVdbuzITorg3jndMT0jAgHtw6JUO4VrS4I57 dJWSaNcInQ7c8OBhoQCZcRgh/Wh4ZI6rE47AceQ02vBiWD7zXYmDsLY8SFY9umm29KkTCSe p1U2ZiVnm5nK49QK1BX2wt4EoJjiOp8axqrlHdi1j+5LF2dvQlFBQT8EOLE88yXoGZiTlBf 5lWF/BXoOagczaK/9WKeQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:yYzQSMXSwsw=:LNGSuUybeiUG2INV0vUuHJ fldiX3qNYEd7E8b1asTO+1RuW5izmJkcQvSivwgVMYyUa6FOyMp107sd2ik2n7OyFRsPfoB9r eviJZOuEzQTLu0WdQPqr7itihD65rdovjdXFVVEHAS6BMSPC3m0vO8/3sjOacRBg4itAI0zzE 3FWRNDaAOvN1C/JJXvUQFb/1McAQTV6R41hCFtSnPVHsz3WIpRj3ZrNS/cmc927Px+VYi9D+0 5vHSPUGMZvgj3Hz/PNtVP8w6HhJoOkUTM1DD0eSPr0NQC+Z6K20PE/59wyhR1xeKNwWv1DtNk wkRiQwNMjHlWh2MaEoJiIOY3YdsS7snQYK2hogamOWs7tQ0YWcsYgGii/DGn2PAP4jdFAEb9t YX+93CSxep8YXBAbc7oUKmGwaD565MlcQcGtqUzTkDkUfN3pC6m317sIDytleCh3OQa4OOg4D /iFk5yy86uAVBVrc30XV7uTITyxI+7topHvLWAYHNnoX8f3ivkm5mwfMWS1KLkea6x62SH9yU KwrF2NQ6IW3osI0maliOGj+ec/ZPs/OE9CUaQaPhyBfi+C5MVw98bgZhNt0UpCH4VeYBotpS5 YoUOr+q2CjxKefKwge47jGFOOKMcl2KNEil8EBmWZq4ShhG3ExlEuAnA4au4ubAgowX7GEJEs RErmbhs1GPqQf4TH3UOBAcE1HH44f+BUGbzL52S4QoYciLftSu0ABEYc6KBbNm7tnuyU= 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") Signed-off-by: Arnd Bergmann --- 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