From patchwork Mon Dec 28 12:45:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 352667 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9785197jai; Mon, 28 Dec 2020 06:24:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwO0ZGobtutZLQodmTC2fBEsPQfRk3PM6IOsrcIZNH78nTFL9ryr1D/mKns0KmQqIBxXycS X-Received: by 2002:a17:906:e84:: with SMTP id p4mr28835181ejf.141.1609165496637; Mon, 28 Dec 2020 06:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165496; cv=none; d=google.com; s=arc-20160816; b=BDq3j8StWHHgrWZPyO22V94TWIJWulwDKSiW0O7RSaSvMMkEI8AV5nxkluyM/BB/o3 s7fQnaWf2R08VsOD+4UOYgt0dbqt5+0bqBVvD0Wv0pSuFxR08R7U2JDOOIyQMIMlX9xC TyrGHMhUtg+k1odmtiGm+uZ48spHoeZcJJ09DejaKOu8ugVU8u50Hyo3eEbL94L1730L UgTBGdD+OC5VxV3bmZP+jcbIkm513ds7iTm1zNqaCn7QyEIH0z0bMcGpy4mod9QnTWu/ 2X4gO1llOPfLSlRPz7uYXjc95Eol6SDE63n3jfogqoARevR7NCLm54ztbv2gbVelOjBo CXbw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zX2IfQcQ5FxqPd0K4kc8syB/uvtYVHN6o2ALZPKTO3E=; b=KYp7iyCOkocKh79kqZd7tEg0EHrOiGiNrkpvk3baldk6wvoIaCBJJYAHK0qFz2PrvR BplKAnwbNoJ2zwknpz2VaSQz34v8cl2gogwAfHM78MDx07Sr3aruAUh3ZnM7lmWSGL3l vw063KYmMdieCjJdYMYtohCTAlQ+J+ZLXkAwGEUXH0vpJyGNXOXZvKY+g+TilgAlSpHk ZUA3ilhcvwbnTzp655FvPPP+VG0nIYpcJhNBwTEQWMrwGZn6UO5jTMxDDXRwWk4JpU0W V6DtZVLZP0AfwffPHfASVmG6U9DxFwV4AZ2tfDmsxxxx0fY3vV31NNKG7vNA+N5oszer 61/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AhoaZiPu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si22355626edc.387.2020.12.28.06.24.56; Mon, 28 Dec 2020 06:24:56 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=AhoaZiPu; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440707AbgL1OPh (ORCPT + 14 others); Mon, 28 Dec 2020 09:15:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:50292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440703AbgL1OPg (ORCPT ); Mon, 28 Dec 2020 09:15:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0591020731; Mon, 28 Dec 2020 14:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164921; bh=inzX3+yGq7gB0NTrlg1g4Jpx2uLTd6KpM1Rworkbq6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AhoaZiPuNAl/IIUBcj0Ihh52rnI3243KHz8sooj3eDgisUSnEr3uKJsesvkS6xrYE D4dOJHkKD6m9U5yaqUByEuzJd4IhBmQWgBerrtNOilDdiTNrJzEOX/twQkAhJIYfpO HDu5oe4YUWdnZWAmRdxd5s+bOgC+wv+nN2rCL5SM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Vinod Koul , Sasha Levin Subject: [PATCH 5.10 315/717] phy: mediatek: allow compile-testing the hdmi phy Date: Mon, 28 Dec 2020 13:45:13 +0100 Message-Id: <20201228125036.123443909@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit f5f6e01f9164040ba120f30522efdb4deceb529a ] Compile-testing the DRM_MEDIATEK_HDMI driver shows two missing dependencies, one results in a link failure: arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi.o: in function `mtk_hdmi_phy_probe': phy-mtk-hdmi.c:(.text+0xd8): undefined reference to `__clk_get_name' arm-linux-gnueabi-ld: phy-mtk-hdmi.c:(.text+0x12c): undefined reference to `devm_clk_register' arm-linux-gnueabi-ld: phy-mtk-hdmi.c:(.text+0x250): undefined reference to `of_clk_add_provider' arm-linux-gnueabi-ld: phy-mtk-hdmi.c:(.text+0x298): undefined reference to `of_clk_src_simple_get' The other one is a harmless warning: WARNING: unmet direct dependencies detected for PHY_MTK_HDMI Depends on [n]: ARCH_MEDIATEK [=n] && OF [=y] Selected by [y]: - DRM_MEDIATEK_HDMI [=y] && HAS_IOMEM [=y] && DRM_MEDIATEK [=y] Fix these by adding dependencies on CONFIG_OF and CONFIG_COMMON_CLK. With that done, there is also no reason against adding CONFIG_COMPILE_TEST. Fixes: b28be59a2e26 ("phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder") Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20201204135650.2744481-1-arnd@kernel.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/mediatek/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig index c8126bde9d7cc..43150608d8b62 100644 --- a/drivers/phy/mediatek/Kconfig +++ b/drivers/phy/mediatek/Kconfig @@ -38,7 +38,9 @@ config PHY_MTK_XSPHY config PHY_MTK_HDMI tristate "MediaTek HDMI-PHY Driver" - depends on ARCH_MEDIATEK && OF + depends on ARCH_MEDIATEK || COMPILE_TEST + depends on COMMON_CLK + depends on OF select GENERIC_PHY help Support HDMI PHY for Mediatek SoCs.