From patchwork Mon Jul 31 12:13:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 109007 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp3575255obm; Mon, 31 Jul 2017 05:13:49 -0700 (PDT) X-Received: by 10.84.194.165 with SMTP id h34mr16727465pld.373.1501503229192; Mon, 31 Jul 2017 05:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501503229; cv=none; d=google.com; s=arc-20160816; b=0TKmh9pWbIY2J6P9kQ3lK0PGTDuxeBMyyFkysVQZBNuxoPLS4JVSU/Rth+5qg9lzVH qoPlrHPUyKFq3fKlPSQDFUqtOalVYZfVvFziFdO8MkAbC9uTMjwwkUwslSrEfbIj5FPy /H40rw5dCn4KhVouAy9NDBI/k0Xt7lqih1/DO1F8bblm47WxvqbaupAfAhHbCp1TFGDR PVe+l2O4JiXoa1ZV6zIRT7TNk0b/5aPq7CUKUjHuQiZysDnSeZnyXrex6YlDGWb0jNVY JVaQWyfP9OcQJQOTdocZ9irjzbWwYUYIiCOhpk18QqteAmFqvMDaszc6FiNQlOAPfD4D kLOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=AVXNmPcjnHDMbls9R40dCCXsmNsKvjXCOCXFRlxkuvQ=; b=l7A5YeLf10VPGoEgpt3ix/L3R57+rKVqV/xQWpe4H9xxwOKyjyKdNFzrDml8x+9dEr RuN4lte+DMRdBUXmvaZGttAolNpacBMtZeezpQhqHAv5aa6K34ado/HRLeEfKV/fNS27 Zz4fB8OoakUCuvKXF9BsQy0mSalGs5o4XFE7WG1xwYEyELDqW/9xq0G2oKVxEa468+fe 9QBJ23s5QAhwvv11xHP36dMF65oyumMhiTDNBxjuIbcnvH8uwa4cmj2skrXM0osUi9TE zqibV2hzadkroCXX0USDi412YXWBU6mQxQy5JtmeDebcGYtNWJ6t+jmEDZF0OFgXYQrM gyQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id x69si13266330pfj.283.2017.07.31.05.13.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Jul 2017 05:13:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 558D46E612; Mon, 31 Jul 2017 12:13:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by gabe.freedesktop.org (Postfix) with ESMTPS id A662C6E612 for ; Mon, 31 Jul 2017 12:13:16 +0000 (UTC) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7] helo=dude.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.84_2) (envelope-from ) id 1dc9ZT-0007HO-0f; Mon, 31 Jul 2017 14:13:15 +0200 From: Philipp Zabel To: dri-devel@lists.freedesktop.org Subject: [PATCH] gpu: ipu-v3: add DRM dependency Date: Mon, 31 Jul 2017 14:13:07 +0200 Message-Id: <20170731121307.1595-1-p.zabel@pengutronix.de> X-Mailer: git-send-email 2.11.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org Cc: Arnd Bergmann 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" From: Arnd Bergmann The new PRE/PRG driver code causes a link failure when IPUv3 is built-in, but DRM is built as a module: 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. If DRM is disabled altogether, the IPUv3 driver is built without PRE/PRG support. Fixes: ea9c260514c1 ("gpu: ipu-v3: add driver for Prefetch Resolve Gasket") Link: https://patchwork.kernel.org/patch/9636665/ Signed-off-by: Arnd Bergmann [p.zabel@pengutronix.de: changed the dependency from DRM to DRM || !DRM, since the link failure only happens when DRM=m and IPUV3_CORE=y. Modified the commit message to reflect this.] Signed-off-by: Philipp Zabel --- 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 08766c6e7856b..87a20b3dcf7a5 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 || !DRM # if DRM=m, this can't be 'y' select GENERIC_IRQ_CHIP help Choose this if you have a i.MX5/6 system and want to use the Image