video: Remove unused drivers, clean up dependencies
Subsystems (7)
v2 cover video: Remove unused drivers, clean up dependencies
This is v2 of the series I originally posted back in August[1]. The changes here are that I've dropped the first patch as TI has recently posted their rework of the driver in question, and I added Svyatoslav's Reviewed-by tag. The end goal here is that "allyesconfig" will be able to build (on sandbox).
[1]: https://patchwork.ozlabs.org/project/uboot/list/?series=468123&state=*
Signature · 1 line
Tom
PATCH v2 1/7 video: mali_dp: Remove unused driver
This driver is unused. Remove it.
--- drivers/video/Kconfig | 8 - drivers/video/Makefile | 1 - drivers/video/mali_dp.c | 401 ---------------------------------------- 3 files changed, 410 deletions(-) delete mode 100644 drivers/video/mali_dp.c
drivers/video/Kconfig +0 -8
@@ -886,14 +886,6 @@ config VIDEO_IVYBRIDGE_IGD source "drivers/video/rockchip/Kconfig" -config VIDEO_ARM_MALIDP - bool "Enable Arm Mali Display Processor support" - depends on OF_CONTROL - select VEXPRESS_CLK - help - This enables support for Arm Ltd Mali Display Processors from - the DP500, DP550 and DP650 family. - config VIDEO_SANDBOX_SDL bool "Enable sandbox video console using SDL" depends on SANDBOX_SDL
drivers/video/Makefile +0 -1
@@ -47,7 +47,6 @@ obj-$(CONFIG_LOGICORE_DP_TX) += logicore_dp_tx.o obj-$(CONFIG_NXP_TDA19988) += tda19988.o obj-$(CONFIG_OSD) += video_osd-uclass.o obj-$(CONFIG_SANDBOX_OSD) += sandbox_osd.o -obj-$(CONFIG_VIDEO_ARM_MALIDP) += mali_dp.o obj-$(CONFIG_VIDEO_BCM2835) += bcm2835.o obj-$(CONFIG_VIDEO_BOCHS) += bochs.o obj-$(CONFIG_VIDEO_BROADWELL_IGD) += broadwell_igd.o
drivers/video/mali_dp.c deleted +0 -401
401 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v2 2/7 video: tegra: Rework some of the driver dependencies
In reply to Tom RiniLooking these drivers over, all of them cannot build without access to some platform specific header files. Express those requirements in Kconfig as well. Furthermore, update the logic a bit more to reflect which parts are optional when other drivers are enabled and which parts cannot be enabled (meaningfully) by themselves.
--- configs/star_defconfig | 1 + drivers/video/tegra/Kconfig | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-)
configs/star_defconfig +1 -0
@@ -86,4 +86,5 @@ CONFIG_VIDEO_LCD_LG_LH400WV3=y CONFIG_VIDEO_LCD_HITACHI_TX10D07VM0BAA=y CONFIG_BACKLIGHT_AAT2870=y CONFIG_VIDEO_BRIDGE=y +CONFIG_VIDEO_TEGRA=y CONFIG_TEGRA_8BIT_CPU_BRIDGE=y
drivers/video/tegra/Kconfig +10 -9
@@ -1,10 +1,12 @@ config HOST1X_TEGRA - bool "NVIDIA Tegra host1x BUS support" - depends on SIMPLE_BUS + bool + select SIMPLE_BUS + help + NVIDIA Tegra host1x BUS support config VIDEO_TEGRA bool "Enable Display Controller support on Tegra devices" - depends on OF_CONTROL + depends on OF_CONTROL && ARCH_TEGRA select HOST1X_TEGRA help Enable support for Display Controller found in Tegra SoC. The
@@ -17,7 +19,7 @@ config VIDEO_TEGRA config VIDEO_DSI_TEGRA bool "Enable DSI controller support on Tegra devices" - depends on VIDEO_BRIDGE && PANEL && DM_GPIO + depends on VIDEO_BRIDGE && PANEL && DM_GPIO && ARCH_TEGRA select VIDEO_TEGRA select VIDEO_MIPI_DSI help
@@ -27,7 +29,7 @@ config VIDEO_DSI_TEGRA config VIDEO_HDMI_TEGRA bool "Enable HDMI support on Tegra devices" - depends on VIDEO_BRIDGE && DM_I2C + depends on VIDEO_BRIDGE && DM_I2C && ARCH_TEGRA select I2C_EDID select VIDEO_TEGRA help
@@ -36,16 +38,14 @@ config VIDEO_HDMI_TEGRA config TEGRA_BACKLIGHT_PWM bool "Enable Tegra DC PWM backlight support" - depends on BACKLIGHT - select VIDEO_TEGRA + depends on BACKLIGHT && VIDEO_TEGRA help Enable support for the Display Controller dependent PWM backlight found in the Tegra SoC and usually used with DSI panels. config TEGRA_8BIT_CPU_BRIDGE bool "Enable 8 bit panel communication protocol for Tegra 20/30" - depends on VIDEO_BRIDGE && DM_GPIO - select VIDEO_TEGRA + depends on VIDEO_BRIDGE && DM_GPIO && VIDEO_TEGRA select VIDEO_MIPI_DSI help Tegra 20 and Tegra 30 feature 8 bit CPU driver panel control
@@ -54,6 +54,7 @@ config TEGRA_8BIT_CPU_BRIDGE config VIDEO_TEGRA124 bool "Enable video support on Tegra124" + depends on ARCH_TEGRA imply VIDEO_DAMAGE help Tegra124 supports many video output options including eDP and
Signature · 1 line
2.43.0
PATCH v2 3/7 video: Tighten some video driver dependencies
In reply to Tom RiniA few video drivers cannot build without access to some platform specific header files. Express those requirements in Kconfig as well.
--- drivers/video/Kconfig | 4 ++++ drivers/video/bridge/Kconfig | 2 +- drivers/video/exynos/Kconfig | 2 +- drivers/video/imx/Kconfig | 1 + drivers/video/meson/Kconfig | 2 +- drivers/video/rockchip/Kconfig | 2 +- drivers/video/stm32/Kconfig | 1 - drivers/video/ti/Kconfig | 1 + 8 files changed, 10 insertions(+), 5 deletions(-)
drivers/video/Kconfig +4 -0
@@ -523,6 +523,7 @@ config ATMEL_LCD_BGR555 config VIDEO_BCM2835 bool "Display support for BCM2835" + depends on ARCH_BCM283X imply VIDEO_DAMAGE help The graphics processor already sets up the display so this driver
@@ -755,6 +756,7 @@ source "drivers/video/meson/Kconfig" config VIDEO_MVEBU bool "Armada XP LCD controller" + depends on ARCH_MVEBU imply VIDEO_DAMAGE ---help--- Support for the LCD controller integrated in the Marvell
@@ -796,6 +798,7 @@ config NXP_TDA19988 config ATMEL_HLCD bool "Enable ATMEL video support using HLCDC" + depends on ARCH_AT91 imply VIDEO_DAMAGE help HLCDC supports video output to an attached LCD panel.
@@ -907,6 +910,7 @@ source "drivers/video/imx/Kconfig" config VIDEO_MXS bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs" + depends on MACH_IMX imply VIDEO_DAMAGE help Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
drivers/video/bridge/Kconfig +1 -1
@@ -53,7 +53,7 @@ config VIDEO_BRIDGE_SOLOMON_SSD2825 config VIDEO_BRIDGE_TOSHIBA_TC358768 bool "Support Toshiba TC358768 MIPI DSI bridge" - depends on VIDEO_BRIDGE && PANEL && DM_GPIO + depends on VIDEO_BRIDGE && PANEL && DM_GPIO && !64BIT select VIDEO_MIPI_DSI select DM_I2C help
drivers/video/exynos/Kconfig +1 -1
@@ -1,7 +1,7 @@ menuconfig VIDEO_EXYNOS bool "Enable Exynos video support" - depends on VIDEO + depends on VIDEO && ARCH_EXYNOS help Enable support for various video output options on Exynos SoCs.
drivers/video/imx/Kconfig +1 -0
@@ -23,3 +23,4 @@ config IMX_LDB config IMX_LCDIF bool "i.MX LCDIFv3 LCD controller" + depends on MACH_IMX
drivers/video/meson/Kconfig +1 -1
@@ -6,7 +6,7 @@ config VIDEO_MESON bool "Enable Amlogic Meson video support" - depends on VIDEO + depends on VIDEO && ARCH_MESON select DISPLAY imply VIDEO_DAMAGE help
drivers/video/rockchip/Kconfig +1 -1
@@ -10,7 +10,7 @@ menuconfig VIDEO_ROCKCHIP bool "Enable Rockchip Video Support" - depends on VIDEO + depends on VIDEO && ARCH_ROCKCHIP imply VIDEO_DAMAGE help Rockchip SoCs provide video output capabilities for High-Definition
drivers/video/stm32/Kconfig +0 -1
@@ -7,7 +7,6 @@ menuconfig VIDEO_STM32 bool "Enable STM32 video support" - depends on VIDEO imply VIDEO_DAMAGE help STM32 supports many video output options including RGB and
drivers/video/ti/Kconfig +1 -0
@@ -4,5 +4,6 @@ # config AM335X_LCD bool "Enable AM335x video support" + depends on ARCH_OMAP2PLUS help Supports video output to an attached LCD panel.
Signature · 1 line
2.43.0
PATCH v2 4/7 video: anx9804: Only build when needed
In reply to Tom RiniThe logic for how to handle this video driver is slightly odd. Only in the case of when CONFIG_VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804 is enabled do we need to have this file built, and otherwise we have a dummy function in use. Correct the logic by only building this file when needed.
--- drivers/video/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/Makefile +1 -1
@@ -56,7 +56,7 @@ obj-$(CONFIG_VIDEO_DW_MIPI_DSI) += dw_mipi_dsi.o obj-$(CONFIG_VIDEO_EFI) += efi.o obj-y += imx/ obj-$(CONFIG_VIDEO_IVYBRIDGE_IGD) += ivybridge_igd.o -obj-$(CONFIG_VIDEO_LCD_ANX9804) += anx9804.o +obj-$(CONFIG_VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804) += anx9804.o obj-$(CONFIG_VIDEO_LCD_ENDEAVORU) += endeavoru-panel.o obj-$(CONFIG_VIDEO_LCD_HIMAX_HX8394) += himax-hx8394.o obj-$(CONFIG_VIDEO_LCD_HITACHI_TX10D07VM0BAA) += hitachi-tx10d07vm0baa.o
Signature · 1 line
2.43.0
PATCH v2 5/7 video: ihs_video_out: Add missing <asm/io.h> to ihs_video_out.c
In reply to Tom RiniThis driver references IO macros while relying on an indirection inclusion of <asm/io.h>. Add the missing include directly.
--- drivers/video/ihs_video_out.c | 1 + 1 file changed, 1 insertion(+)
drivers/video/ihs_video_out.c +1 -0
@@ -15,6 +15,7 @@#include <regmap.h> #include <video_osd.h> #include <asm/gpio.h> +#include <asm/io.h> static const uint MAX_X_CHARS =53 ;static const uint MAX_Y_CHARS =26 ;
Signature · 1 line
2.43.0
PATCH v2 6/7 video: sharp-lq101r1sx01: Do not make use of 'z' for printing non-size_t
In reply to Tom RiniThe debug macros in this driver make use of the z prefix when printing regular, non-size_t variables and this results in a warning. Drop 'z'.
--- drivers/video/sharp-lq101r1sx01.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/video/sharp-lq101r1sx01.c +2 -2
@@ -40,14 +40,14 @@ static int sharp_lq101r1sx01_write(struct mipi_dsi_device *dsi, ret =mipi_dsi_generic_write (dsi, payload,sizeof (payload));if (ret <0 ) { -log_debug ("%s: failed to write %02x to %04x: %zd\n" , +log_debug ("%s: failed to write %02x to %04x: %d\n" , __func__, value, offset, ret);return ret; } ret =mipi_dsi_dcs_nop (dsi);if (ret <0 ) { -log_debug ("%s: failed to send DCS nop: %zd\n" , +log_debug ("%s: failed to send DCS nop: %d\n" , __func__, ret);return ret; }
Signature · 1 line
2.43.0
PATCH v2 7/7 video: stm32: stm32_ltdc: Add missing <linux/sizes.h> to stm32_ltdc.c
In reply to Tom RiniThis driver references the SZ_ macros while relying on an indirection inclusion of <linux/sizes.h>. Add the missing include directly.
--- drivers/video/stm32/stm32_ltdc.c | 1 + 1 file changed, 1 insertion(+)
drivers/video/stm32/stm32_ltdc.c +1 -0
@@ -20,6 +20,7 @@#include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/printk.h> +#include <linux/sizes.h> struct stm32_ltdc_priv {void __iomem *regs;
Signature · 1 line
2.43.0
Quoted 9 lines · Tom Rini
This is v2 of the series I originally posted back in August[1]. The changes here are that I've dropped the first patch as TI has recently posted their rework of the driver in question, and I added Svyatoslav's Reviewed-by tag. The end goal here is that "allyesconfig" will be able to build (on sandbox).
[1]: https://patchwork.ozlabs.org/project/uboot/list/?series=468123&state=*
[...]
Applied to u-boot/next, thanks!
[1/7] video: mali_dp: Remove unused driver
commit: c2ef9e1b0cb7e32a8046e4714a219fd21b9a0daf
[2/7] video: tegra: Rework some of the driver dependencies
commit: 68735fd33427ff1576f37391f24b5d8912afe45e
[3/7] video: Tighten some video driver dependencies
commit: 96d1e8b29b4fc3aa150bce520f33966955efa456
[4/7] video: anx9804: Only build when needed
commit: e1bcce1dbbb13a7ec1e8f02e8ce27fad8c550f23
[5/7] video: ihs_video_out: Add missing <asm/io.h> to ihs_video_out.c
commit: 082e5118dab3a23c3d61ed429ad03195efe57653
[6/7] video: sharp-lq101r1sx01: Do not make use of 'z' for printing non-size_t
commit: 5d3af86ae16f1207e1b38b00fccb5d01965cc778
[7/7] video: stm32: stm32_ltdc: Add missing <linux/sizes.h> to stm32_ltdc.c
commit: b6f78b815af652cf7ce47db48f93d6283cad4c5bSignature · 1 line
Tom