]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/display: stop depending on DRM_DISPLAY_HELPER
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 3 Sep 2024 02:01:56 +0000 (05:01 +0300)
committerMaxime Ripard <mripard@kernel.org>
Tue, 3 Sep 2024 08:18:28 +0000 (10:18 +0200)
commit466cb3c630a51b04995c6247d2fb73b5ce7bfd7f
tree5764531b19eafed619b7b54570479872acf5b1ce
parent3f6b2f60b4631cd0c368da6a1587ab55a696164d
drm/display: stop depending on DRM_DISPLAY_HELPER

Kconfig symbols should not declare dependency on DRM_DISPLAY_HELPER.
Move all parts of DRM_DISPLAY_HELPER to an if DRM_DISPLAY_HELPER block.

It is not possible to make those symbols select DRM_DISPLAY_HELPER
because of the link issues when a part of the helper is selected to be
built-in, while other part is selected to be as module. In such a case
the modular part doesn't get built at all, leading to undefined symbols.

The only viable alternative is to split drm_display_helper.ko into
several small modules, each of them having their own dependencies.

Suggested-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240903-drm-bridge-connector-fix-hdmi-reset-v5-1-daebde6d9857@linaro.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/display/Kconfig