Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9086600pxu; Mon, 28 Dec 2020 06:18:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVg1eEpp7McdlN8HJCR5geIJ9usVIh9WlaFgVBE7RtUT7jMw/+njSrkCCReeaKv41tO4tw X-Received: by 2002:a17:906:3b8b:: with SMTP id u11mr41170768ejf.489.1609165103325; Mon, 28 Dec 2020 06:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165103; cv=none; d=google.com; s=arc-20160816; b=N6MgzIL/KtTSmY9LKx4MK+3tSumumm4hTNefumr0t5bybKHF/SpLMeoDkTxP9h7W0e MUpoX5pgvRPO4sEtrmeCtFNmC0TmIqAWkR+IZeXW7TWv/PcsYgpQbuXMQI4CkoGNsvhy D4nWC1ZAW8905EUBumnbrDHLGj0Qy1WxYnDaEGj5RVWZuYuFtZjS4ZyAAGTHDAM5DXvk 5ZlCgFe61V1MxG+oQJjspnprrSGGDf6IlYz4D+SNXvw5ntVaCaqJYHfEYe4yEwZCp0T2 WFT2FpET0Vq3YjNOII+QM8iOKEcUtyhCuvNoS8jc78cLz2MfCiPUo6fd9yO1XbqxXBIA d7gw== 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=KbpMWjdEi9Tj7iOY4TzdNUE+MJC4OtcdLXpuidqLK2XpOEsGpbUoTO7YNbI0YtsqFm /oVdzVUzR471iPp/11dESrtyqThIjtXTgQ7oQe4puFue/9j5l8SCmqXNRxy3z/5jNhs3 iJDkf+1m2pszMLzNYqa34SApGOmss8iJodwz3FnEy9U4uljxzDrfQyfluVBxMItDsqJK j/QyUzQtWFsy60nm1HW0UFuFpbpO1R1h9W9u2zUXHD6YpAUgFcE8ql1VZqvrsfTnv3mQ o7MVVgIdAQF7IPjBS3zmEoMxMi5LUXfMZIlEIVmBJ1etneCfynng3meVr3+PEXva4G5t xSEg== 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 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq16si17072398ejb.253.2020.12.28.06.18.01; Mon, 28 Dec 2020 06:18:23 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=AhoaZiPu; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440730AbgL1OPn (ORCPT + 99 others); Mon, 28 Dec 2020 09:15:43 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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. -- 2.27.0