[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <208e9a0453d38b081309eca4b9feda013436dc1f.camel@mediatek.com>
Date: Tue, 24 Dec 2024 07:05:24 +0000
From: CK Hu (胡俊光) <ck.hu@...iatek.com>
To: "p.zabel@...gutronix.de" <p.zabel@...gutronix.de>, "AngeloGioacchino Del
Regno" <angelogioacchino.delregno@...labora.com>, "chunkuang.hu@...nel.org"
<chunkuang.hu@...nel.org>, "arnd@...nel.org" <arnd@...nel.org>,
"airlied@...il.com" <airlied@...il.com>, "matthias.bgg@...il.com"
<matthias.bgg@...il.com>, "simona@...ll.ch" <simona@...ll.ch>
CC: "tzimmermann@...e.de" <tzimmermann@...e.de>, "dmitry.baryshkov@...aro.org"
<dmitry.baryshkov@...aro.org>, "ville.syrjala@...ux.intel.com"
<ville.syrjala@...ux.intel.com>, "jani.nikula@...el.com"
<jani.nikula@...el.com>, "dri-devel@...ts.freedesktop.org"
<dri-devel@...ts.freedesktop.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "arnd@...db.de" <arnd@...db.de>,
"geert+renesas@...der.be" <geert+renesas@...der.be>, "wenst@...omium.org"
<wenst@...omium.org>, "linux-mediatek@...ts.infradead.org"
<linux-mediatek@...ts.infradead.org>, "mripard@...nel.org"
<mripard@...nel.org>, "linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] drm/mediatek: stop selecting foreign drivers
Hi, Arnd:
On Wed, 2024-12-18 at 09:58 +0100, Arnd Bergmann wrote:
> External email : Please do not click links or open attachments until you have verified the sender or the content.
>
>
> From: Arnd Bergmann <arnd@...db.de>
>
> The PHY portion of the mediatek hdmi driver was originally part of
> the driver it self and later split out into drivers/phy, which a
> 'select' to keep the prior behavior.
>
> However, this leads to build failures when the PHY driver cannot
> be built:
>
> WARNING: unmet direct dependencies detected for PHY_MTK_HDMI
> Depends on [n]: (ARCH_MEDIATEK || COMPILE_TEST [=y]) && COMMON_CLK [=y] && OF [=y] && REGULATOR [=n]
> Selected by [m]:
> - DRM_MEDIATEK_HDMI [=m] && HAS_IOMEM [=y] && DRM [=m] && DRM_MEDIATEK [=m]
> ERROR: modpost: "devm_regulator_register" [drivers/phy/mediatek/phy-mtk-hdmi-drv.ko] undefined!
> ERROR: modpost: "rdev_get_drvdata" [drivers/phy/mediatek/phy-mtk-hdmi-drv.ko] undefined!
>
> The best option here is to just not select the phy driver and leave that
> up to the defconfig. Do the same for the other PHY and memory drivers
> selected here as well for consistency.
Reviewed-by: CK Hu <ck.hu@...iatek.com>
>
> Fixes: a481bf2f0ca4 ("drm/mediatek: Separate mtk_hdmi_phy to an independent module")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> drivers/gpu/drm/mediatek/Kconfig | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig
> index 1c2f56b75716..1d4f20a4f265 100644
> --- a/drivers/gpu/drm/mediatek/Kconfig
> +++ b/drivers/gpu/drm/mediatek/Kconfig
> @@ -15,9 +15,6 @@ config DRM_MEDIATEK
> select DRM_BRIDGE_CONNECTOR
> select DRM_MIPI_DSI
> select DRM_PANEL
> - select MEMORY
> - select MTK_SMI
> - select PHY_MTK_MIPI_DSI
> select VIDEOMODE_HELPERS
> help
> Choose this option if you have a Mediatek SoCs.
> @@ -28,7 +25,6 @@ config DRM_MEDIATEK
> config DRM_MEDIATEK_DP
> tristate "DRM DPTX Support for MediaTek SoCs"
> depends on DRM_MEDIATEK
> - select PHY_MTK_DP
> select DRM_DISPLAY_HELPER
> select DRM_DISPLAY_DP_HELPER
> select DRM_DISPLAY_DP_AUX_BUS
> @@ -39,6 +35,5 @@ config DRM_MEDIATEK_HDMI
> tristate "DRM HDMI Support for Mediatek SoCs"
> depends on DRM_MEDIATEK
> select SND_SOC_HDMI_CODEC if SND_SOC
> - select PHY_MTK_HDMI
> help
> DRM/KMS HDMI driver for Mediatek SoCs
> --
> 2.39.5
>
Powered by blists - more mailing lists