Re: [PATCH] drm: Make PANEL_ORIENTATION_QUIRKS depend on DRM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <chris@xxxxxxxxxxxxxxxxxx>
Cc: Daniel Vetter <daniel.vetter@xxxxxxxx>
Cc: Hans de Goede <hdegoede@xxxxxxxxxx>



---
  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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux