Hi,

On 15-01-18 16:48, Chris Wilson wrote:
Commit 404d1a3edc38 ("drm: Add panel orientation quirks, v6.")
introduced a new internal Kconfig option for DRM and placed in the
middle of the DRM option sequence without including a depends on DRM.
This has the unfortunate side-effect of breaking the DRM menuconfig to
not include the existing DRM options.

These quirks can also be used by fbdev drivers, so the Kconfig option
intentionally does not have a depends on DRM.

After reading how menuconfig works in Documentation/kbuild/kconfig-language.txt
I can see how I've broken things, sorry.

But your fix is not correct, the fbdev code does a
select DRM_PANEL_ORIENTATION_QUIRKS without depending on
DRM so this will cause circular dependency issues.

The proper fix would be to move the entry entirely to the
end putting it together with DRM_LIB_RANDOM which also does
not depend on DRM.

Shall I submit a patch with the proper fix, or will you?

Regards,

Hans



Fixes: 404d1a3edc38 ("drm: Add panel orientation quirks, v6.")
Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vet...@ffwll.ch>
Cc: Hans de Goede <hdego...@redhat.com>



---
  drivers/gpu/drm/Kconfig | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 0bc374459440..3218d0e8fb1b 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -30,6 +30,7 @@ config DRM_MIPI_DSI
  # Separate option because drm_panel_orientation_quirks.c is shared with fbdev
  config DRM_PANEL_ORIENTATION_QUIRKS
        tristate
+       depends on DRM
config DRM_DP_AUX_CHARDEV
        bool "DRM DP AUX Interface"

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to