Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3524394pxb; Wed, 13 Oct 2021 07:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyNgqISwrZZ/F6gWYzh9FKVy4/YTK1Y8A3GhhE2olpvTkG6MU8vTSBoq112aQUp140Gfnx X-Received: by 2002:a17:90a:1a4c:: with SMTP id 12mr14180823pjl.89.1634136277607; Wed, 13 Oct 2021 07:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136277; cv=none; d=google.com; s=arc-20160816; b=ot5jEr1jiQ6SzdXOmCm5do68YztMMYDM0jKJFOOi5Ml1naWVpb2Ju3W+aUtUuWMOru HYOGpY0O0V4gWskT46HCFI1C80w9w6Vj9FAv6UOFM/EfqBpdMJ7hvJqqem5IBXilRKrU cGJO5FDezQuRDgNMd4/d8O3/U0XH8ou46a9pK+jDo55I/f2ycDwHUg6KjMxH9fl6Tko+ l9ERDVoDF/vYu6z8h6FhnYKODn/O09bYyEi3yW1FEbSSdgTeJlnHy7kVqt++17t5l01V QjWse6ok2D8zfxxkeXiTkpC00dZY7G/vouGPPhoaMnJ4h4hiwAmGYWJB03jvRPWX9Q8f 2MZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TAFDkluXMcJhrWb8r0thIGnerPBrxbGRxBx0vyVsdec=; b=Ae9gLXc99PGPVLaifYnCLMOZMyAT09aXbDDCBi6ZQ3OQNxoY06LzFsiJ08I4B6khBe P5O193qnuZXJtwfwtJP34NUxnbDL4I7D2sylDdd9sflMhxMPbL4Wo3xC1z/FAo57xHfp dZLO4ORF/KJ6v/lg70XxIy6v/kghyeQ+XY6/scHfZ77O+5SluSW97rysozu9xuGGvlY+ kLGNz0u0nYUVo89uBQ4ived6MCNsGtrQomXKbxdIDhtlf8/lBfnJWXuocKASAzTfPYBR IKvFVIVw9j33AIMvdFDKCz9aQlbpxqj40oAKSNxPIT2KA3/BWyLNoypvW4casyHfi6uY T31g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ioHRl71J; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si7764235pgk.512.2021.10.13.07.44.22; Wed, 13 Oct 2021 07:44:37 -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=@kernel.org header.s=k20201202 header.b=ioHRl71J; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbhJMOpX (ORCPT + 99 others); Wed, 13 Oct 2021 10:45:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:51490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236976AbhJMOpR (ORCPT ); Wed, 13 Oct 2021 10:45:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E667661166; Wed, 13 Oct 2021 14:43:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634136193; bh=3YOpUj7zJIjHOwNL7dHDpxdkIPlsudzfvv538+Bhka0=; h=From:To:Cc:Subject:Date:From; b=ioHRl71JgzZ0mbftYm/WArKiGSk5dzcVQvzsXVP7zv2nWL4M22qfgruxeGeqOkzHO +u7kIJ7Af439F+wP9OuveVQDGGLgnD1nwQc3CmOlSsyLO8t4AiyWj0DzN6eZwWTCal tnuHzV/3oZaLuOHeGuB0wpxSoNmTRYNA9GHWnA0Qp3uh+p5iaLH6j6Ez/ldAjVxHS1 vmL2is+oMpacdVpqgx0ymn1tCl+Gx0KEVSnalG5F5eDYtceNwRNUSkLc45R5hdO0Sr Udc8D60oJar4TuxLNhJnjjoS391ykJf7K2SswEs6zjPZkTxWxRvvtL0XwgaHQKjDal DxliTR8fRQprw== From: Arnd Bergmann To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Randy Dunlap , Geert Uytterhoeven , Dmitry Baryshkov , Alex Elder , =?UTF-8?q?Christian=20K=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 Subject: [PATCH] drm: msm: fix building without CONFIG_COMMON_CLK Date: Wed, 13 Oct 2021 16:42:56 +0200 Message-Id: <20211013144308.2248978-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 -- 2.29.2