Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp80625pxb; Fri, 15 Oct 2021 00:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVwkS2KHYXq4/+ExxKS0gx/ghaCMLfnr955Ldqtkba7EL2C7Ghukc/XMM2ghAQHKn7QVPR X-Received: by 2002:a50:e004:: with SMTP id e4mr15838236edl.246.1634284086563; Fri, 15 Oct 2021 00:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634284086; cv=none; d=google.com; s=arc-20160816; b=NzDEDXv0VyyknaTKgiviw6bUGFmaGl5puVXoOzx5xMRymzLvu2qRX9qtWBabg2c7t3 2diH6ejeROZOsqgqWkBBIqKUKXY5qZ8GEMEQkOGm6h8GM0j2c1mFW+T4Bvn/QbY4v+KQ v7yj648JWa+9ZRT3TJxN14ghNf/7QhrrDl0Yo7I6vem1Y6rFr9/1Tb9tWKl5nt1UjtCY UQwGB3CPGEX5ljnBT0zG8gkSnb3Hrf9Xiyyf/rZRRzmdF7VmYzhoIgks0PhvPD+13DHm ry32/WIuM9HulquEsj2aELz9tg6+Y1G2kyxXhFaMHeiRWrJ8UzgUi54XiR1KvjG0EDHP 3Plw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=gAakFVCdlu4BwUnr1HsiBStLYgFMjKgM2HCJV6khvVI=; b=ZAgCcjx0hHoRXq3omVrrb9+uFwV9ZhdkfgaiuxygB/GUztW4tiyDGXd3Iy1OjvV7cn +/a5gsXrE6uqvpZHSLuMMym+31P7rE6zVr/akLmQ1GWl182vtiV+OW8IXul2DBQO2LIq rG+QzYS4kJzPo3+Odb24jO39EXjt6sTanGlVzfNRn1RUqkt3Rh/86AXn2IPFFVUAl3uQ FiBlgwzxwY4LtCWlflyBGYJ1f+R7mEJkBVfr7MA/tcWkogxPb1QPHGbaDxQMfvK4by1W B7Td5Ay30vUu85mHkTv1tx2VYZRQuYDRZ2+dre4ehLXCbioDa4R8uqbbzjdtic16luAP O4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KqrFJqTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si7014952eja.239.2021.10.15.00.47.32; Fri, 15 Oct 2021 00:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KqrFJqTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234611AbhJOA2N (ORCPT + 99 others); Thu, 14 Oct 2021 20:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234593AbhJOA2J (ORCPT ); Thu, 14 Oct 2021 20:28:09 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7850C061753 for ; Thu, 14 Oct 2021 17:26:03 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id t9so33523694lfd.1 for ; Thu, 14 Oct 2021 17:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gAakFVCdlu4BwUnr1HsiBStLYgFMjKgM2HCJV6khvVI=; b=KqrFJqTAAd10gLKTVHbzWujEhl0n1HYn0E+xVy66B9zm1FNUxx8QtX5yZVfLeeODxs TYuPsYapJNCClxzEXoVd2HvUwe/BQa07J/w+ePK17SSbJQXNzoX4Zri8wYr9KTf82caF iH7sJpZRdliFvfgO2ualjYGlVrWZTKdGa09dTq3gOozlXNwDalk6SknK8K0j0TE78GRD hoFF/VtosBG2t8NSZhhlDJ12ZDgS2Rmh2cb00OIpkxvm7hXT3y9qfQUhiIcdrj0W8K2X F9oFDrm2aJQBk3gTmmc5a3T7XgWTZYV4zw14o4TXGuBhh3oGIPpOAvTOlyjwaB8dhoje 6QhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gAakFVCdlu4BwUnr1HsiBStLYgFMjKgM2HCJV6khvVI=; b=ZuUe838kkTLmw0LQ3F8IeolqYIn8CWXliU4uYTakikJuqMeMV3WdKpoxBSoEz4CT6w UPEolF4sYUob/Kp6OoiXwenE3EPL11VcTeYhJ1Ebe7a++ltx4BY5BgR4NIZi2KO1nxTl QB6sOYma9TDPLIfoEjvhB7rObH+jOC8bUYN1oUFZ6sWtRm46RXjlsrWI8lIDrcSlMCUs Bmh1KJdiPk7yi/Vo81iI5DI66BeF3oeckVvaFRKWpNXPuoHPL+Wnhd3QPEtvS1W1NAqe bx9By0HfFF5ANkn0K86Vyj499E/hnlVQl0fEyeLN4viCAWXA/tP8ZpL113qoDT4mzfGF XSwg== X-Gm-Message-State: AOAM533FYaT47vd/M2uBTD59b3q97nRX9KJrmPJDKk66wNqiiAiyyKcL 6mvHLlClVED/r0ybKnva/Wql+UhzpWNkAg== X-Received: by 2002:ac2:4ecd:: with SMTP id p13mr7883899lfr.237.1634257561771; Thu, 14 Oct 2021 17:26:01 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id e12sm396760ljp.30.2021.10.14.17.26.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Oct 2021 17:26:01 -0700 (PDT) Subject: Re: [PATCH] drm: msm: fix building without CONFIG_COMMON_CLK To: Arnd Bergmann , Rob Clark , Sean Paul , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Randy Dunlap , Geert Uytterhoeven , Alex Elder , =?UTF-8?Q?Christian_K=c3=b6nig?= , Akhil P Oommen , Rajeev Nandan , Abhinav Kumar , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20211013144308.2248978-1-arnd@kernel.org> From: Dmitry Baryshkov Message-ID: Date: Fri, 15 Oct 2021 03:26:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211013144308.2248978-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/10/2021 17:42, Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_COMMON_CLOCK is disabled, the 8996 specific > phy code is left out, which results in a link failure: > > ld: drivers/gpu/drm/msm/hdmi/hdmi_phy.o:(.rodata+0x3f0): undefined reference to `msm_hdmi_phy_8996_cfg' > > This was only exposed after it became possible to build > test the driver without the clock interfaces. > > Make COMMON_CLK a hard dependency for compile testing, > and simplify it a little based on that. > > Fixes: b3ed524f84f5 ("drm/msm: allow compile_test on !ARM") > Reported-by: Randy Dunlap > Suggested-by: Geert Uytterhoeven > Signed-off-by: Arnd Bergmann This drops dependency on CONFIG_OF. While ARM64 selects OF, pure ARM does not. With that fixed: Reviewed-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/Kconfig | 2 +- > drivers/gpu/drm/msm/Makefile | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig > index f5107b6ded7b..cb204912e0f4 100644 > --- a/drivers/gpu/drm/msm/Kconfig > +++ b/drivers/gpu/drm/msm/Kconfig > @@ -4,8 +4,8 @@ config DRM_MSM > tristate "MSM DRM" > depends on DRM > depends on ARCH_QCOM || SOC_IMX5 || COMPILE_TEST > + depends on COMMON_CLK > depends on IOMMU_SUPPORT > - depends on (OF && COMMON_CLK) || COMPILE_TEST > depends on QCOM_OCMEM || QCOM_OCMEM=n > depends on QCOM_LLCC || QCOM_LLCC=n > depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n > diff --git a/drivers/gpu/drm/msm/Makefile b/drivers/gpu/drm/msm/Makefile > index 904535eda0c4..bbee22b54b0c 100644 > --- a/drivers/gpu/drm/msm/Makefile > +++ b/drivers/gpu/drm/msm/Makefile > @@ -23,8 +23,10 @@ msm-y := \ > hdmi/hdmi_i2c.o \ > hdmi/hdmi_phy.o \ > hdmi/hdmi_phy_8960.o \ > + hdmi/hdmi_phy_8996.o \ > hdmi/hdmi_phy_8x60.o \ > hdmi/hdmi_phy_8x74.o \ > + hdmi/hdmi_pll_8960.o \ > edp/edp.o \ > edp/edp_aux.o \ > edp/edp_bridge.o \ > @@ -37,6 +39,7 @@ msm-y := \ > disp/mdp4/mdp4_dtv_encoder.o \ > disp/mdp4/mdp4_lcdc_encoder.o \ > disp/mdp4/mdp4_lvds_connector.o \ > + disp/mdp4/mdp4_lvds_pll.o \ > disp/mdp4/mdp4_irq.o \ > disp/mdp4/mdp4_kms.o \ > disp/mdp4/mdp4_plane.o \ > @@ -117,9 +120,6 @@ msm-$(CONFIG_DRM_MSM_DP)+= dp/dp_aux.o \ > dp/dp_audio.o > > msm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o > -msm-$(CONFIG_COMMON_CLK) += disp/mdp4/mdp4_lvds_pll.o > -msm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_pll_8960.o > -msm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_phy_8996.o > > msm-$(CONFIG_DRM_MSM_HDMI_HDCP) += hdmi/hdmi_hdcp.o > > -- With best wishes Dmitry