All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
@ 2020-12-03  9:15 Patrick Delaunay
  2020-12-03  9:15 ` [PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD Patrick Delaunay
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Patrick Delaunay @ 2020-12-03  9:15 UTC (permalink / raw)
  To: u-boot


I propose this serie to remove the vidconsole work-around, activated with
the 2 options VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME and cleanup
the associated code in console.c (under #ifdef CONFIG_VIDCONSOLE_AS_LCD)

This options are now obsolete and they was planned to be
removed around the end of 2020.

I propose this patchset for v2021.04 even if I don't
test this serie on real boards.

Patrick.



Patrick Delaunay (6):
  tbs2910: configs: remove VIDCONSOLE_AS_LCD
  peach-pit: configs: remove VIDCONSOLE_AS_LCD
  snow: configs: remove VIDCONSOLE_AS_LCD
  peach-pi: configs: remove VIDCONSOLE_AS_LCD
  spring: configs: remove VIDCONSOLE_AS_LCD
  video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME

 common/console.c            | 10 ----------
 configs/peach-pi_defconfig  |  1 -
 configs/peach-pit_defconfig |  1 -
 configs/snow_defconfig      |  1 -
 configs/spring_defconfig    |  1 -
 configs/tbs2910_defconfig   |  1 -
 drivers/video/Kconfig       | 22 ----------------------
 7 files changed, 37 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD
  2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
@ 2020-12-03  9:15 ` Patrick Delaunay
  2020-12-06 19:59   ` Soeren Moch
  2020-12-03  9:15 ` [PATCH 2/6] peach-pit: " Patrick Delaunay
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 15+ messages in thread
From: Patrick Delaunay @ 2020-12-03  9:15 UTC (permalink / raw)
  To: u-boot

Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in
./include/configs/tbs2910.h since commit 513acd04452f ("tbs2910: migrate
to DM_VIDEO").

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 configs/tbs2910_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
index e43fab208d..b5580abbfd 100644
--- a/configs/tbs2910_defconfig
+++ b/configs/tbs2910_defconfig
@@ -103,7 +103,6 @@ CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_ANSI is not set
 CONFIG_SYS_WHITE_ON_BLACK=y
 # CONFIG_PANEL is not set
-CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_I2C_EDID=y
 CONFIG_VIDEO_IPUV3=y
 CONFIG_VIDEO_BMP_RLE8=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 2/6] peach-pit: configs: remove VIDCONSOLE_AS_LCD
  2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
  2020-12-03  9:15 ` [PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD Patrick Delaunay
@ 2020-12-03  9:15 ` Patrick Delaunay
  2020-12-03  9:15 ` [PATCH 3/6] snow: " Patrick Delaunay
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: Patrick Delaunay @ 2020-12-03  9:15 UTC (permalink / raw)
  To: u-boot

Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in
./include/configs/peach-pit.h => configs/exynos5-dt-common.h since the
commit bb5930d5c97f ("exynos: video: Convert several boards to driver
model for video")

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 configs/peach-pit_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/peach-pit_defconfig b/configs/peach-pit_defconfig
index c6646dcd6e..4d8da7307d 100644
--- a/configs/peach-pit_defconfig
+++ b/configs/peach-pit_defconfig
@@ -74,7 +74,6 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
-CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 3/6] snow: configs: remove VIDCONSOLE_AS_LCD
  2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
  2020-12-03  9:15 ` [PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD Patrick Delaunay
  2020-12-03  9:15 ` [PATCH 2/6] peach-pit: " Patrick Delaunay
@ 2020-12-03  9:15 ` Patrick Delaunay
  2020-12-03  9:15 ` [PATCH 4/6] peach-pi: " Patrick Delaunay
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: Patrick Delaunay @ 2020-12-03  9:15 UTC (permalink / raw)
  To: u-boot

Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in
./include/configs/snow.h => configs/exynos5-dt-common.h since the
commit bb5930d5c97f ("exynos: video: Convert several boards to driver
model for video")

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 configs/snow_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/snow_defconfig b/configs/snow_defconfig
index 76215034ac..0f31d7f963 100644
--- a/configs/snow_defconfig
+++ b/configs/snow_defconfig
@@ -85,7 +85,6 @@ CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX88179=y
 CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
-CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 4/6] peach-pi: configs: remove VIDCONSOLE_AS_LCD
  2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
                   ` (2 preceding siblings ...)
  2020-12-03  9:15 ` [PATCH 3/6] snow: " Patrick Delaunay
@ 2020-12-03  9:15 ` Patrick Delaunay
  2020-12-03  9:15 ` [PATCH 5/6] spring: " Patrick Delaunay
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 15+ messages in thread
From: Patrick Delaunay @ 2020-12-03  9:15 UTC (permalink / raw)
  To: u-boot

Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in
./include/configs/peach-pi.h => configs/exynos5-dt-common.h since the
commit bb5930d5c97f ("exynos: video: Convert several boards to driver
model for video")

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 configs/peach-pi_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/peach-pi_defconfig b/configs/peach-pi_defconfig
index 01054b0ee4..0625305bd7 100644
--- a/configs/peach-pi_defconfig
+++ b/configs/peach-pi_defconfig
@@ -75,7 +75,6 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
-CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 5/6] spring: configs: remove VIDCONSOLE_AS_LCD
  2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
                   ` (3 preceding siblings ...)
  2020-12-03  9:15 ` [PATCH 4/6] peach-pi: " Patrick Delaunay
@ 2020-12-03  9:15 ` Patrick Delaunay
  2020-12-12 15:39   ` Simon Glass
  2020-12-03  9:15 ` [PATCH 6/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
  2020-12-06 19:58 ` [PATCH 0/6] " Soeren Moch
  6 siblings, 1 reply; 15+ messages in thread
From: Patrick Delaunay @ 2020-12-03  9:15 UTC (permalink / raw)
  To: u-boot

Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in
./include/configs/spring.h => configs/exynos5-dt-common.h since the
commit bb5930d5c97f ("exynos: video: Convert several boards to driver
model for video")

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 configs/spring_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/spring_defconfig b/configs/spring_defconfig
index a1fdf1d1f6..eaf3a9fe1c 100644
--- a/configs/spring_defconfig
+++ b/configs/spring_defconfig
@@ -86,7 +86,6 @@ CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX88179=y
 CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
-CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 6/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
  2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
                   ` (4 preceding siblings ...)
  2020-12-03  9:15 ` [PATCH 5/6] spring: " Patrick Delaunay
@ 2020-12-03  9:15 ` Patrick Delaunay
  2020-12-06 19:58 ` [PATCH 0/6] " Soeren Moch
  6 siblings, 0 replies; 15+ messages in thread
From: Patrick Delaunay @ 2020-12-03  9:15 UTC (permalink / raw)
  To: u-boot

Remove as planned (option will be removed around the end of 2020)
the workaround for boards which have 'lcd' or 'vga' in their stdout
environment variable.

These options are no more used in any defconfig and this patch simplify
the code in console.c file.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 common/console.c      | 10 ----------
 drivers/video/Kconfig | 22 ----------------------
 2 files changed, 32 deletions(-)

diff --git a/common/console.c b/common/console.c
index 3348436da6..dce28723d5 100644
--- a/common/console.c
+++ b/common/console.c
@@ -730,11 +730,6 @@ struct stdio_dev *search_device(int flags, const char *name)
 	struct stdio_dev *dev;
 
 	dev = stdio_get_by_name(name);
-#ifdef CONFIG_VIDCONSOLE_AS_LCD
-	if (!dev && !strcmp(name, CONFIG_VIDCONSOLE_AS_NAME))
-		dev = stdio_get_by_name("vidconsole");
-#endif
-
 	if (dev && (dev->flags & flags))
 		return dev;
 
@@ -914,11 +909,6 @@ done:
 #ifndef CONFIG_SYS_CONSOLE_INFO_QUIET
 	stdio_print_current_devices();
 #endif /* CONFIG_SYS_CONSOLE_INFO_QUIET */
-#ifdef CONFIG_VIDCONSOLE_AS_LCD
-	if (strstr(stdoutname, CONFIG_VIDCONSOLE_AS_NAME))
-		printf("Warning: Please change '%s' to 'vidconsole' in stdout/stderr environment vars\n",
-		       CONFIG_VIDCONSOLE_AS_NAME);
-#endif
 
 #ifdef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 	/* set the environment variables (will overwrite previous env settings) */
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 998271b9b6..e4bf04a561 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -207,28 +207,6 @@ config SIMPLE_PANEL
 
 source "drivers/video/fonts/Kconfig"
 
-config VIDCONSOLE_AS_LCD
-	bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
-	depends on DM_VIDEO
-	help
-	  This is a work-around for boards which have 'lcd' or 'vga' in their
-	  stdout environment variable, but have moved to use driver model for
-	  video. In this case the console will no-longer work. While it is
-	  possible to update the environment, the breakage may be confusing for
-	  users. This option will be removed around the end of 2020.
-
-config VIDCONSOLE_AS_NAME
-	string "Use 'vidconsole' when string defined here is seen in stdout"
-	depends on VIDCONSOLE_AS_LCD
-	default "lcd" if LCD || TEGRA_COMMON
-	default "vga" if !LCD
-	help
-	  This is a work-around for boards which have 'lcd' or 'vga' in their
-	  stdout environment variable, but have moved to use driver model for
-	  video. In this case the console will no-longer work. While it is
-	  possible to update the environment, the breakage may be confusing for
-	  users. This option will be removed around the end of 2020.
-
 config VIDEO_COREBOOT
 	bool "Enable coreboot framebuffer driver support"
 	depends on X86 && SYS_COREBOOT
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
  2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
                   ` (5 preceding siblings ...)
  2020-12-03  9:15 ` [PATCH 6/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
@ 2020-12-06 19:58 ` Soeren Moch
       [not found]   ` <f0bd0043f95b4364bde19d21902e09bd@SFHDAG2NODE3.st.com>
  6 siblings, 1 reply; 15+ messages in thread
From: Soeren Moch @ 2020-12-06 19:58 UTC (permalink / raw)
  To: u-boot

On 03.12.20 10:15, Patrick Delaunay wrote:
> I propose this serie to remove the vidconsole work-around, activated with
> the 2 options VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME and cleanup
> the associated code in console.c (under #ifdef CONFIG_VIDCONSOLE_AS_LCD)
>
> This options are now obsolete and they was planned to be
> removed around the end of 2020.
>
> I propose this patchset for v2021.04 even if I don't
> test this serie on real boards.
I really would like to keep this code for now.

On the tbs2910 board this workaround was introduced in the last u-boot
release (v2020.10), so there was almost no time for end users to notice
the warning and to update there environment. Not every end user installs
every new u-boot release, so we really should give more time for this
change.

This workaround is self-contained, small, easy to maintain, and strictly
opt-in. So this workaround hurts nobody, but removing this will let
users alone without any HDMI output. So on this board (without included
serial console port), this will result in unhappy users, especially
since without any console output there is no chance to get any idea what
is going wrong.

Thanks,
Soeren
>
> Patrick.
>
>
>
> Patrick Delaunay (6):
>   tbs2910: configs: remove VIDCONSOLE_AS_LCD
>   peach-pit: configs: remove VIDCONSOLE_AS_LCD
>   snow: configs: remove VIDCONSOLE_AS_LCD
>   peach-pi: configs: remove VIDCONSOLE_AS_LCD
>   spring: configs: remove VIDCONSOLE_AS_LCD
>   video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
>
>  common/console.c            | 10 ----------
>  configs/peach-pi_defconfig  |  1 -
>  configs/peach-pit_defconfig |  1 -
>  configs/snow_defconfig      |  1 -
>  configs/spring_defconfig    |  1 -
>  configs/tbs2910_defconfig   |  1 -
>  drivers/video/Kconfig       | 22 ----------------------
>  7 files changed, 37 deletions(-)
>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD
  2020-12-03  9:15 ` [PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD Patrick Delaunay
@ 2020-12-06 19:59   ` Soeren Moch
  0 siblings, 0 replies; 15+ messages in thread
From: Soeren Moch @ 2020-12-06 19:59 UTC (permalink / raw)
  To: u-boot

On 03.12.20 10:15, Patrick Delaunay wrote:
> Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in
> ./include/configs/tbs2910.h since commit 513acd04452f ("tbs2910: migrate
> to DM_VIDEO").
I don't consider this workaround as obsolete, please see my response to
the cover letter of this series. [1]

So please do not remove this code.

Thanks,
Soeren

[1] https://lists.denx.de/pipermail/u-boot/2020-December/434239.html
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
>  configs/tbs2910_defconfig | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
> index e43fab208d..b5580abbfd 100644
> --- a/configs/tbs2910_defconfig
> +++ b/configs/tbs2910_defconfig
> @@ -103,7 +103,6 @@ CONFIG_DM_VIDEO=y
>  # CONFIG_VIDEO_ANSI is not set
>  CONFIG_SYS_WHITE_ON_BLACK=y
>  # CONFIG_PANEL is not set
> -CONFIG_VIDCONSOLE_AS_LCD=y
>  CONFIG_I2C_EDID=y
>  CONFIG_VIDEO_IPUV3=y
>  CONFIG_VIDEO_BMP_RLE8=y

^ permalink raw reply	[flat|nested] 15+ messages in thread

* FW: [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
       [not found]   ` <f0bd0043f95b4364bde19d21902e09bd@SFHDAG2NODE3.st.com>
@ 2020-12-08 14:30     ` Patrick DELAUNAY
  2020-12-08 16:16       ` Tom Rini
  0 siblings, 1 reply; 15+ messages in thread
From: Patrick DELAUNAY @ 2020-12-08 14:30 UTC (permalink / raw)
  To: u-boot

Hi Soeren,

> From: Soeren Moch <smoch@web.de> Sent: dimanche 6 d?cembre 2020 20:59 
> On 03.12.20 10:15, Patrick Delaunay wrote:
>
>> I propose this serie to remove the vidconsole work-around, activated 
>> with the 2 options VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME and 
>> cleanup the associated code in console.c (under #ifdef 
>> CONFIG_VIDCONSOLE_AS_LCD) This options are now obsolete and they was 
>> planned to be removed around the end of 2020. I propose this patchset 
>> for v2021.04 even if I don't test this serie on real boards.
>>
> I really would like to keep this code for now.
>
I propose to remove these options because they are indicated obsolete in 
the config description

in drivers/video/Kconfig (I see it during code review):

"This option will be removed around the end of 2020"

But I have no issue to kept it.

> On the tbs2910 board this workaround was introduced in the last u-boot 
> release (v2020.10), so there was almost no time for end users to 
> notice the warning and to update there environment. Not every end user 
> installs every new u-boot release, so we really should give more time 
> for this change.
>
I agree that for your project, with migration to DM_VIDEO it is a really 
short notice.

 ??? commit 645d39aea367064868dcdd30c411806f4403b67b

 ??? board: tbs2910: Fix video output with existing environments

=> only integrated in v2020.10-rc2, sorry to miss it

> This workaround is self-contained, small, easy to maintain, and 
> strictly opt-in. So this workaround hurts nobody, but removing this 
> will let users alone without any HDMI output. So on this board 
> (without included serial console port), this will result in unhappy 
> users, especially since without any console output there is no chance 
> to get any idea what is going wrong.
>
Initially, I proposed this patch to cleanup the console.c code with 2 
other series:

1) http://patchwork.ozlabs.org/project/uboot/list/?series=218309

 ??? "console: remove #ifdef CONFIG when it is possible"

2) http://patchwork.ozlabs.org/project/uboot/list/?series=218089

 ??? "console: cosmetics: remove #if 0"


And I just want just to remove the remaining "#ifdef CONFIG_...."? in 
console.c


But I agree that I need to change my proposal to remove this workaround code

(it is only use to help the DM VIDEO migration for existing board)

and change the release target.


I propose to :

- remove patch 1/6 of the serie for your board

- no more remove the options in 6/6 but add warning in Makefile when the 
option is activated

 ? and change target in config desciption


ifeq ($(CONFIG_VIDCONSOLE_AS_LCD),y)
 ??? @echo >&2 "===================== WARNING ======================"
 ??? @echo >&2 "This board does use CONFIG_VIDCONSOLE_AS_LCD workaround."
 ??? @echo >&2 "Please update the existing user defined environments 
before "
 ??? @echo >&2 "v2022.01 release."
 ??? @echo >&2 "Failure to update by the deadline may result in video 
console"

@echo >&2 "issue when this woarkaround will be removed."
 ??? @echo >&2 "===================================================="
endif

=> open point: which acceptable target to remove this feature ? v2022.01 ?

Anyway, if the the maintainers (video or console) think this code should 
be kept, I can also drop this serie.

Thanks.

Patrick

^ permalink raw reply	[flat|nested] 15+ messages in thread

* FW: [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
  2020-12-08 14:30     ` FW: " Patrick DELAUNAY
@ 2020-12-08 16:16       ` Tom Rini
  2020-12-20 19:28         ` Soeren Moch
  2020-12-20 21:14         ` Anatolij Gustschin
  0 siblings, 2 replies; 15+ messages in thread
From: Tom Rini @ 2020-12-08 16:16 UTC (permalink / raw)
  To: u-boot

On Tue, Dec 08, 2020 at 03:30:43PM +0100, Patrick DELAUNAY wrote:
> Hi Soeren,
> 
> > From: Soeren Moch <smoch@web.de> Sent: dimanche 6 d?cembre 2020 20:59 On
> > 03.12.20 10:15, Patrick Delaunay wrote:
> > 
> > > I propose this serie to remove the vidconsole work-around, activated
> > > with the 2 options VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME and
> > > cleanup the associated code in console.c (under #ifdef
> > > CONFIG_VIDCONSOLE_AS_LCD) This options are now obsolete and they was
> > > planned to be removed around the end of 2020. I propose this
> > > patchset for v2021.04 even if I don't test this serie on real
> > > boards.
> > > 
> > I really would like to keep this code for now.
> > 
> I propose to remove these options because they are indicated obsolete in the
> config description
> 
> in drivers/video/Kconfig (I see it during code review):
> 
> "This option will be removed around the end of 2020"
> 
> But I have no issue to kept it.
> 
> > On the tbs2910 board this workaround was introduced in the last u-boot
> > release (v2020.10), so there was almost no time for end users to notice
> > the warning and to update there environment. Not every end user installs
> > every new u-boot release, so we really should give more time for this
> > change.
> > 
> I agree that for your project, with migration to DM_VIDEO it is a really
> short notice.
> 
> ??? commit 645d39aea367064868dcdd30c411806f4403b67b
> 
> ??? board: tbs2910: Fix video output with existing environments
> 
> => only integrated in v2020.10-rc2, sorry to miss it
> 
> > This workaround is self-contained, small, easy to maintain, and strictly
> > opt-in. So this workaround hurts nobody, but removing this will let
> > users alone without any HDMI output. So on this board (without included
> > serial console port), this will result in unhappy users, especially
> > since without any console output there is no chance to get any idea what
> > is going wrong.
> > 
> Initially, I proposed this patch to cleanup the console.c code with 2 other
> series:
> 
> 1) http://patchwork.ozlabs.org/project/uboot/list/?series=218309
> 
> ??? "console: remove #ifdef CONFIG when it is possible"
> 
> 2) http://patchwork.ozlabs.org/project/uboot/list/?series=218089
> 
> ??? "console: cosmetics: remove #if 0"
> 
> 
> And I just want just to remove the remaining "#ifdef CONFIG_...."? in
> console.c
> 
> 
> But I agree that I need to change my proposal to remove this workaround code
> 
> (it is only use to help the DM VIDEO migration for existing board)
> 
> and change the release target.
> 
> 
> I propose to :
> 
> - remove patch 1/6 of the serie for your board
> 
> - no more remove the options in 6/6 but add warning in Makefile when the
> option is activated
> 
> ? and change target in config desciption
> 
> 
> ifeq ($(CONFIG_VIDCONSOLE_AS_LCD),y)
> ??? @echo >&2 "===================== WARNING ======================"
> ??? @echo >&2 "This board does use CONFIG_VIDCONSOLE_AS_LCD workaround."
> ??? @echo >&2 "Please update the existing user defined environments before "
> ??? @echo >&2 "v2022.01 release."
> ??? @echo >&2 "Failure to update by the deadline may result in video
> console"
> 
> @echo >&2 "issue when this woarkaround will be removed."
> ??? @echo >&2 "===================================================="
> endif
> 
> => open point: which acceptable target to remove this feature ? v2022.01 ?

This sounds like a good plan and reasonable date to me.  Anatolij?
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201208/f2a19038/attachment.sig>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 5/6] spring: configs: remove VIDCONSOLE_AS_LCD
  2020-12-03  9:15 ` [PATCH 5/6] spring: " Patrick Delaunay
@ 2020-12-12 15:39   ` Simon Glass
  0 siblings, 0 replies; 15+ messages in thread
From: Simon Glass @ 2020-12-12 15:39 UTC (permalink / raw)
  To: u-boot

On Thu, 3 Dec 2020 at 02:16, Patrick Delaunay <patrick.delaunay@st.com> wrote:
>
> Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in
> ./include/configs/spring.h => configs/exynos5-dt-common.h since the
> commit bb5930d5c97f ("exynos: video: Convert several boards to driver
> model for video")
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
>  configs/spring_defconfig | 1 -
>  1 file changed, 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* FW: [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
  2020-12-08 16:16       ` Tom Rini
@ 2020-12-20 19:28         ` Soeren Moch
  2020-12-20 21:14         ` Anatolij Gustschin
  1 sibling, 0 replies; 15+ messages in thread
From: Soeren Moch @ 2020-12-20 19:28 UTC (permalink / raw)
  To: u-boot

On 08.12.20 17:16, Tom Rini wrote:
> On Tue, Dec 08, 2020 at 03:30:43PM +0100, Patrick DELAUNAY wrote:
>> Hi Soeren,
>>
>>> From: Soeren Moch <smoch@web.de> Sent: dimanche 6 d?cembre 2020 20:59 On
>>> 03.12.20 10:15, Patrick Delaunay wrote:
>>>
>>>> I propose this serie to remove the vidconsole work-around, activated
>>>> with the 2 options VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME and
>>>> cleanup the associated code in console.c (under #ifdef
>>>> CONFIG_VIDCONSOLE_AS_LCD) This options are now obsolete and they was
>>>> planned to be removed around the end of 2020. I propose this
>>>> patchset for v2021.04 even if I don't test this serie on real
>>>> boards.
>>>>
>>> I really would like to keep this code for now.
>>>
>> I propose to remove these options because they are indicated obsolete in the
>> config description
>>
>> in drivers/video/Kconfig (I see it during code review):
>>
>> "This option will be removed around the end of 2020"
>>
>> But I have no issue to kept it.
>>
>>> On the tbs2910 board this workaround was introduced in the last u-boot
>>> release (v2020.10), so there was almost no time for end users to notice
>>> the warning and to update there environment. Not every end user installs
>>> every new u-boot release, so we really should give more time for this
>>> change.
>>>
>> I agree that for your project, with migration to DM_VIDEO it is a really
>> short notice.
>>
>> ??? commit 645d39aea367064868dcdd30c411806f4403b67b
>>
>> ??? board: tbs2910: Fix video output with existing environments
>>
>> => only integrated in v2020.10-rc2, sorry to miss it
>>
>>> This workaround is self-contained, small, easy to maintain, and strictly
>>> opt-in. So this workaround hurts nobody, but removing this will let
>>> users alone without any HDMI output. So on this board (without included
>>> serial console port), this will result in unhappy users, especially
>>> since without any console output there is no chance to get any idea what
>>> is going wrong.
>>>
>> Initially, I proposed this patch to cleanup the console.c code with 2 other
>> series:
>>
>> 1) http://patchwork.ozlabs.org/project/uboot/list/?series=218309
>>
>> ??? "console: remove #ifdef CONFIG when it is possible"
>>
>> 2) http://patchwork.ozlabs.org/project/uboot/list/?series=218089
>>
>> ??? "console: cosmetics: remove #if 0"
>>
>>
>> And I just want just to remove the remaining "#ifdef CONFIG_...."? in
>> console.c
>>
>>
>> But I agree that I need to change my proposal to remove this workaround code
>>
>> (it is only use to help the DM VIDEO migration for existing board)
>>
>> and change the release target.
>>
>>
>> I propose to :
>>
>> - remove patch 1/6 of the serie for your board
>>
>> - no more remove the options in 6/6 but add warning in Makefile when the
>> option is activated
>>
>> ? and change target in config desciption
>>
>>
>> ifeq ($(CONFIG_VIDCONSOLE_AS_LCD),y)
>> ??? @echo >&2 "===================== WARNING ======================"
>> ??? @echo >&2 "This board does use CONFIG_VIDCONSOLE_AS_LCD workaround."
>> ??? @echo >&2 "Please update the existing user defined environments before "
>> ??? @echo >&2 "v2022.01 release."
>> ??? @echo >&2 "Failure to update by the deadline may result in video
>> console"
>>
>> @echo >&2 "issue when this woarkaround will be removed."
>> ??? @echo >&2 "===================================================="
>> endif
>>
>> => open point: which acceptable target to remove this feature ? v2022.01 ?
> This sounds like a good plan and reasonable date to me.  Anatolij?
> Thanks!
>
Probably board users will not pay much attention to the build warning,
hopefully more to the console output warning.
Nevertheless, the proposed plan sounds like a good idea to me.

Thanks,
Soeren

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
  2020-12-08 16:16       ` Tom Rini
  2020-12-20 19:28         ` Soeren Moch
@ 2020-12-20 21:14         ` Anatolij Gustschin
  2020-12-21 21:35           ` Tom Rini
  1 sibling, 1 reply; 15+ messages in thread
From: Anatolij Gustschin @ 2020-12-20 21:14 UTC (permalink / raw)
  To: u-boot

On Tue, 8 Dec 2020 11:16:30 -0500
Tom Rini trini at konsulko.com wrote:
...   
> > => open point: which acceptable target to remove this feature ? v2022.01 ?  
> 
> This sounds like a good plan and reasonable date to me.  Anatolij?

I have no objection, this target date is okay for me.

--
Anatolij

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME
  2020-12-20 21:14         ` Anatolij Gustschin
@ 2020-12-21 21:35           ` Tom Rini
  0 siblings, 0 replies; 15+ messages in thread
From: Tom Rini @ 2020-12-21 21:35 UTC (permalink / raw)
  To: u-boot

On Sun, Dec 20, 2020 at 10:14:06PM +0100, Anatolij Gustschin wrote:
> On Tue, 8 Dec 2020 11:16:30 -0500
> Tom Rini trini at konsulko.com wrote:
> ...   
> > > => open point: which acceptable target to remove this feature ? v2022.01 ?  
> > 
> > This sounds like a good plan and reasonable date to me.  Anatolij?
> 
> I have no objection, this target date is okay for me.

Can you please make up the patch for noting this, etc?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201221/bfe798ba/attachment.sig>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-12-21 21:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03  9:15 [PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
2020-12-03  9:15 ` [PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD Patrick Delaunay
2020-12-06 19:59   ` Soeren Moch
2020-12-03  9:15 ` [PATCH 2/6] peach-pit: " Patrick Delaunay
2020-12-03  9:15 ` [PATCH 3/6] snow: " Patrick Delaunay
2020-12-03  9:15 ` [PATCH 4/6] peach-pi: " Patrick Delaunay
2020-12-03  9:15 ` [PATCH 5/6] spring: " Patrick Delaunay
2020-12-12 15:39   ` Simon Glass
2020-12-03  9:15 ` [PATCH 6/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME Patrick Delaunay
2020-12-06 19:58 ` [PATCH 0/6] " Soeren Moch
     [not found]   ` <f0bd0043f95b4364bde19d21902e09bd@SFHDAG2NODE3.st.com>
2020-12-08 14:30     ` FW: " Patrick DELAUNAY
2020-12-08 16:16       ` Tom Rini
2020-12-20 19:28         ` Soeren Moch
2020-12-20 21:14         ` Anatolij Gustschin
2020-12-21 21:35           ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.