From patchwork Fri Dec 13 08:30:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13906654 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE4EFE77180 for ; Fri, 13 Dec 2024 08:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=a/1dr0FgUE6eojbK5mAq8KjlXBaz4F21DqMSmZsgWTY=; b=Qwq6cpX0eQ3GG5QNOqH34AVerO IaW1QgtHUpsShWNv8NOCBDobPEuiMLR3ZRUpNGoAVoUQjXpDt13uDzVibp2+E9JPVY72KYfXUQByj YXPEdvk+1BO3b5xm6SE4JdKBjt4aqvV9Su+QrhlXpgAlUlf5e0evAeqH6GXlauaDhcr2RY2/vjcr6 ysQuuisdjs9Jss3g6xaJgap9vdHQ9IUi8SVT699DclvTFGrEuhHdmC62Ur7xzdkpwwuaNfDywd+lb +gvZi2UF4twECBrIAwO6SRiAYz5eX7iLQ7d57Zmj1dTPXGkaxQspuBcfUrgQtCUuM960m6T4OoP3i vWOT1Q6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tM15o-000000035h9-0lN6; Fri, 13 Dec 2024 08:32:12 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tM14i-000000035ZD-1Ygj; Fri, 13 Dec 2024 08:31:05 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 55FD85C6A73; Fri, 13 Dec 2024 08:30:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8982FC4CED0; Fri, 13 Dec 2024 08:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734078663; bh=OmnbKPvHVM7MdfRx5FYkdNzBzuqOqnCvvH25yQuyNBA=; h=From:To:Cc:Subject:Date:From; b=VNk8HE/5qYbZuBa988qzCP0ljdU8d8JT1z7lwgU/ujrmlqidCLhSdNvcuNPKF8uI5 EKWmpL9T5FLfBvMoOi213/5kdb/id+Y9DkDKlLpxzsFlttMq9OMJnHm0OaovoooBC9 QyxzZ8gW4dlEW4i3CJzv5xQcz+Gs4kXEDxa6KKxgSPyJPfrIDgh7pu8R9D86wcKOT+ IgqsZjlQ2GoEEijNseArr7zADkeSQkp93wtce8Xl2xcBKQyCEHPN69rjQH1muW5PBg c8OReZ8kuGiSmWUDwTUH3DY6rnqwxq7nkl1ERJYxFQ0qsyRpdBLkk0PCRCCa5aR/Tz Quc23IjDMmUJA== From: Arnd Bergmann To: Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Matthias Brugger , AngeloGioacchino Del Regno Cc: Arnd Bergmann , Phi-bang Nguyen , Jacob Keller , Daniel Golle , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] phy: mediatek: phy-mtk-hdmi: add regulator dependency Date: Fri, 13 Dec 2024 09:30:51 +0100 Message-Id: <20241213083056.2596499-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241213_003104_451348_7E829849 X-CRM114-Status: UNSURE ( 7.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The driver no longer builds when regulator support is unavailable: arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi.o: in function `mtk_hdmi_phy_register_regulators': phy-mtk-hdmi.c:(.text.unlikely+0x3e): undefined reference to `devm_regulator_register' arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi-mt8195.o: in function `mtk_hdmi_phy_pwr5v_is_enabled': phy-mtk-hdmi-mt8195.c:(.text+0x326): undefined reference to `rdev_get_drvdata' arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi-mt8195.o: in function `mtk_hdmi_phy_pwr5v_disable': phy-mtk-hdmi-mt8195.c:(.text+0x346): undefined reference to `rdev_get_drvdata' arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi-mt8195.o: in function `mtk_hdmi_phy_pwr5v_enable': Fixes: 49393b2da1cd ("phy: mediatek: phy-mtk-hdmi: Register PHY provided regulator") Signed-off-by: Arnd Bergmann Reviewed-by: AngeloGioacchino Del Regno --- drivers/phy/mediatek/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig index 60e00057e8bc..ba6461350951 100644 --- a/drivers/phy/mediatek/Kconfig +++ b/drivers/phy/mediatek/Kconfig @@ -65,6 +65,7 @@ config PHY_MTK_HDMI depends on ARCH_MEDIATEK || COMPILE_TEST depends on COMMON_CLK depends on OF + depends on REGULATOR select GENERIC_PHY help Support HDMI PHY for Mediatek SoCs.