fbdev: Simple fixes to Kconfig dependencies
Subsystems (2)
cover fbdev: Simple fixes to Kconfig dependencies
Fix some of the dependencies within fbdev to follow best practices.
Thomas Zimmermann (2):
fbdev: Make drivers depend on FB_TILEBLITTING
fbdev: Turn FB_MODE_HELPERS into an internal config option
drivers/video/fbdev/Kconfig | 8 ++++---- drivers/video/fbdev/core/Kconfig | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.51.0
PATCH 1/2 fbdev: Make drivers depend on FB_TILEBLITTING
The option CONFIG_FB_TILEBLITTING is controlled by the user. Selecting it from drivers can lead to cyclic dependencies within the config. In fbcon, there's special handling for tile blitting, which currently cannot be disabled without first disabling the relevant fbdev drivers. Fix the Kconfig dependency to make it work.
Some guidelines for using select can be found in the kernel docs at [1].
--- drivers/video/fbdev/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/video/fbdev/Kconfig +4 -4
@@ -816,11 +816,11 @@ config FB_I810_I2C config FB_MATROX tristate "Matrox acceleration" depends on FB && PCI + depends on FB_TILEBLITTING select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select FB_IOMEM_FOPS - select FB_TILEBLITTING select FB_MACMODES if PPC_PMAC help Say Y here if you have a Matrox Millennium, Matrox Millennium II,
@@ -1053,11 +1053,11 @@ config FB_ATY_BACKLIGHT config FB_S3 tristate "S3 Trio/Virge support" depends on FB && PCI && HAS_IOPORT + depends on FB_TILEBLITTING select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select FB_IOMEM_FOPS - select FB_TILEBLITTING select FB_SVGALIB select VGASTATE select FONT_8x16 if FRAMEBUFFER_CONSOLE
@@ -1258,11 +1258,11 @@ config FB_VOODOO1 config FB_VT8623 tristate "VIA VT8623 support" depends on FB && PCI && HAS_IOPORT + depends on FB_TILEBLITTING select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select FB_IOMEM_FOPS - select FB_TILEBLITTING select FB_SVGALIB select VGASTATE select FONT_8x16 if FRAMEBUFFER_CONSOLE
@@ -1296,11 +1296,11 @@ config FB_TRIDENT config FB_ARK tristate "ARK 2000PV support" depends on FB && PCI && HAS_IOPORT + depends on FB_TILEBLITTING select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select FB_IOMEM_FOPS - select FB_TILEBLITTING select FB_SVGALIB select VGASTATE select FONT_8x16 if FRAMEBUFFER_CONSOLE
Signature · 1 line
2.51.0
Re: [PATCH 1/2] fbdev: Make drivers depend on FB_TILEBLITTING
Quoted 11 lines · Thomas Zimmermann
The option
CONFIG_FB_TILEBLITTINGis controlled by the user. Selecting it from drivers can lead to cyclic dependencies within the config. In fbcon, there's special handling for tile blitting, which currently cannot be disabled without first disabling the relevant fbdev drivers. Fix theKconfigdependency to make it work.Some guidelines for using select can be found in the kernel docs at [1].
Signed-off-by Thomas Zimmermann <[email protected]>Link:
https://elixir.bootlin.com/linux/v6.16/source/Documentation/kbuild/kconfig-language.rst#L147
I did the opposite patch to hide FB_TILEBLITTING from the user a while ago but never sent that. I still think that is the better approach, matching what you did with FB_MODE_HELPERS in patch 2.
Is there any reason I missed why enabling FB_TILEBLITTING is useful if you don't use one of the four drivers that require it?
Arnd
Re: [PATCH 1/2] fbdev: Make drivers depend on FB_TILEBLITTING
Hi
Am 09.09.25 um 19:29 schrieb Arnd Bergmann:
Quoted 12 lines · Thomas Zimmermann
Quoted 11 lines
The option
CONFIG_FB_TILEBLITTINGis controlled by the user. Selecting it from drivers can lead to cyclic dependencies within the config. In fbcon, there's special handling for tile blitting, which currently cannot be disabled without first disabling the relevant fbdev drivers. Fix theKconfigdependency to make it work.Some guidelines for using select can be found in the kernel docs at [1].
Signed-off-by Thomas Zimmermann <[email protected]>Link:
https://elixir.bootlin.com/linux/v6.16/source/Documentation/kbuild/kconfig-language.rst#L147
Quoted 7 lines
I did the opposite patch to hide
FB_TILEBLITTINGfrom the user a while ago but never sent that. I still think that is the better approach, matching what you did withFB_MODE_HELPERSin patch 2.Is there any reason I missed why enabling
FB_TILEBLITTINGis useful if you don't use one of the four drivers that require it?
It's more that some users might want to disable it explicitly. The option adds additional code to fbcon. And most affected drivers could easily be changed to work without it AFAICT.
Best regards
Thomas
Quoted 2 lines
Arnd
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Arnd Bergmann
Acked-byRe: [PATCH 1/2] fbdev: Make drivers depend on FB_TILEBLITTING
Quoted 9 lines · Thomas Zimmermann
Am 09.09.25 um 19:29 schrieb Arnd Bergmann:
Quoted 4 lines · Thomas Zimmermann
Is there any reason I missed why enabling
FB_TILEBLITTINGis useful if you don't use one of the four drivers that require it?It's more that some users might want to disable it explicitly. The option adds additional code to fbcon. And most affected drivers could easily be changed to work without it AFAICT.
Right, I see your point. I assumed this was purely library code getting called by the four drivers, but there is also the fbcon code it interacts with.
PATCH 2/2 fbdev: Turn FB_MODE_HELPERS into an internal config option
In reply to Thomas ZimmermannSeveral fbdev drivers select FB_MODE_HELPER in the Kconfig. The setting controls some helper fucntions and has no meaning to the user. Make it an internal option.
--- drivers/video/fbdev/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/core/Kconfig +1 -1
@@ -180,7 +180,7 @@ config FB_BACKLIGHT depends on FB config FB_MODE_HELPERS - bool "Enable Video Mode Handling Helpers" + bool depends on FB help This enables functions for handling video modes using the
Signature · 1 line
2.51.0
Re: [PATCH 2/2] fbdev: Turn FB_MODE_HELPERS into an internal config option
Quoted 5 lines · Thomas Zimmermann
Several fbdev drivers select
FB_MODE_HELPERin theKconfig. The setting controls some helper fucntions and has no meaning to the user. Make it an internal option.Signed-off-by Thomas Zimmermann <[email protected]>