Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3221867ybi; Fri, 5 Jul 2019 03:58:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHuuQFCfYZq0czw5Jf8nImBl1/rnBf8Oxo+rtp8Nq7CPTSihtcix8auadN9Ti8lSGQPkQ5 X-Received: by 2002:a63:125c:: with SMTP id 28mr4743461pgs.255.1562324320529; Fri, 05 Jul 2019 03:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562324320; cv=none; d=google.com; s=arc-20160816; b=NiW6yEEQDBsNrrVY1hx0RZQpYGVk5GfJ3vIZoRNKM6gCxDMlTJ5roqO8JKbIS/mb78 NMAVecg0iK2uxTpO7cUZ3w+Q/XlP08cE8ofsfqLe8hUhS6r4q/2Uwdm4nhfLBvZ0i71u aGitHTp9W6xk7Aj4PmhfIbz9YQBvXlbVYZl2FPW+9X8ib8RaOUN+AXznkOgpWApPlOAQ JKo7k/NKc6ALEi654vRcgeWNms6QejyWLseFIiJgDUCXKZgvxaO3aCZsNiFeI9SL9leb uCixQPy+tPaQBVAp51OH8Sfzcb7QPcSPm8qExOrJP8YZB2EU3Fd/sP47zlvshLdpVhZn pwqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=78GmIMa0YhEOKSW3CErzgKL+x4xo7OO9Gv4Be09lY6c=; b=xG/512XdzXEjeq8gVeISwvoM7nQj509oMKXMpwOTy3UuCQeAcHrw+pD11ah+pIobjd /DQR9DYVzhtcmyxzFECIqapAZwH7hoImKFU0yO5ukx4wb0YG8mgdQgScrMFNXkIxlVPk eseouCWbYodwVk0/8I4Ij4m8Rl+VN4gRbyDZVBgVPydp44xy+C5UBoHWZ2KpC00baQ/L MZLPj4xe991hdqSBPpPnT5sCBt/A5AHa5zCTJ4wLtxQGI/7k9ftFKfIIZvcfMyERVOJp 8jTozwzTPlsrNYD/iaqIx1fffJAVIsvaehnm7HwIBpcwJtEyVaR9m8JySTvfzEG0szv3 pjrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si8574490pfa.25.2019.07.05.03.58.25; Fri, 05 Jul 2019 03:58:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728335AbfGEKcH (ORCPT + 99 others); Fri, 5 Jul 2019 06:32:07 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:54081 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726568AbfGEKcG (ORCPT ); Fri, 5 Jul 2019 06:32:06 -0400 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1hjLVc-0008Jm-Pl; Fri, 05 Jul 2019 12:32:04 +0200 Message-ID: <1562322724.4291.5.camel@pengutronix.de> Subject: Re: [v1] gpu: ipu-v3: allow to build with ARCH_LAYERSCAPE From: Philipp Zabel To: Wen He , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Cc: Leo Li Date: Fri, 05 Jul 2019 12:32:04 +0200 In-Reply-To: <20190508105755.5881-1-wen.he_1@nxp.com> References: <20190508105755.5881-1-wen.he_1@nxp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 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: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wen, On Wed, 2019-05-08 at 10:56 +0000, Wen He wrote: > The new LS1028A DP driver code causes a link failure when DRM_IMX built-in, > but platform is ARCH_LAYERSCAPE: > > drivers/gpu/drm/imx/ipuv3-crtc.c:51: undefined reference to `ipu_prg_enable' > drivers/gpu/drm/imx/ipuv3-crtc.c:52: undefined reference to `ipu_dc_enable' > drivers/gpu/drm/imx/ipuv3-crtc.c:53: undefined reference to `ipu_dc_enable_channel' > drivers/gpu/drm/imx/ipuv3-crtc.c:54: undefined reference to `ipu_di_enable' > drivers/gpu/drm/imx/ipuv3-crtc.o: In function `ipu_crtc_mode_set_nofb > > Adding a Kconfig dependency allow to build if ARCH_LAYERSCAPE is enable. > > Signed-off-by: Wen He > --- > drivers/gpu/ipu-v3/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/ipu-v3/Kconfig b/drivers/gpu/ipu-v3/Kconfig > index fe6f8c5b4445..51ea88c440df 100644 > --- a/drivers/gpu/ipu-v3/Kconfig > +++ b/drivers/gpu/ipu-v3/Kconfig > @@ -1,6 +1,6 @@ > config IMX_IPUV3_CORE > tristate "IPUv3 core support" > - depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM || COMPILE_TEST > + depends on SOC_IMX5 || SOC_IMX6Q || ARCH_MULTIPLATFORM || COMPILE_TEST || ARCH_LAYERSCAPE > depends on DRM || !DRM # if DRM=m, this can't be 'y' > select BITREVERSE > select GENERIC_ALLOCATOR if DRM > -- > 2.17.1 Thank you for the patch, but this does not seem right. ipuv3-crtc.c is part of DRM_IMX, which already depends on IMX_IPUV3_CORE. How did you manage to make it try to compile imxdrm? Since LS1028A does not have the IPUv3, keeping this under COMPILE_TEST should be correct. regards Philipp