* [PATCH master v2 1/3] arm: boards: add pr_fmt() prefix to wolfvision pf5 board code
2024-05-15 10:35 [PATCH master v2 0/3] Fixes for WolfVision board code library and PF5 mainboard code Michael Riesch
@ 2024-05-15 10:35 ` Michael Riesch
2024-05-15 10:35 ` [PATCH master v2 2/3] common: boards: move dependencies to wolfvision board code library Michael Riesch
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Michael Riesch @ 2024-05-15 10:35 UTC (permalink / raw)
To: barebox; +Cc: Michael Riesch
Add pr_fmt() message prefix to WolfVision PF5 board code.
Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
---
arch/arm/boards/wolfvision-pf5/board.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boards/wolfvision-pf5/board.c b/arch/arm/boards/wolfvision-pf5/board.c
index 797f51bc2e..5a2f4201ba 100644
--- a/arch/arm/boards/wolfvision-pf5/board.c
+++ b/arch/arm/boards/wolfvision-pf5/board.c
@@ -4,6 +4,9 @@
*
* Copyright (C) 2024 WolfVision GmbH.
*/
+
+#define pr_fmt(fmt) "WolfVision PF5: " fmt
+
#include <common.h>
#include <deep-probe.h>
#include <globalvar.h>
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH master v2 2/3] common: boards: move dependencies to wolfvision board code library
2024-05-15 10:35 [PATCH master v2 0/3] Fixes for WolfVision board code library and PF5 mainboard code Michael Riesch
2024-05-15 10:35 ` [PATCH master v2 1/3] arm: boards: add pr_fmt() prefix to wolfvision pf5 board code Michael Riesch
@ 2024-05-15 10:35 ` Michael Riesch
2024-05-15 10:35 ` [PATCH master v2 3/3] common: boards: wolfvision: fix handling of overlays parameter Michael Riesch
2024-05-16 6:11 ` [PATCH master v2 0/3] Fixes for WolfVision board code library and PF5 mainboard code Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Michael Riesch @ 2024-05-15 10:35 UTC (permalink / raw)
To: barebox; +Cc: Michael Riesch
Since hardware ID detection has been moved to the WolfVision board code
library, move the Kconfig dependencies as well.
Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
---
arch/arm/mach-rockchip/Kconfig | 2 --
common/boards/Kconfig | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index f373624f5c..e7c0c634aa 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -117,9 +117,7 @@ config MACH_RADXA_CM3
config MACH_WOLFVISION_PF5
select ARCH_RK3568
- select AIODEV
select BOARD_WOLFVISION
- select ROCKCHIP_SARADC
bool "WolfVision PF5 mainboard"
help
Say Y here if you are using a WolfVision PF5 mainboard
diff --git a/common/boards/Kconfig b/common/boards/Kconfig
index a2a51155ea..586a54d7ca 100644
--- a/common/boards/Kconfig
+++ b/common/boards/Kconfig
@@ -17,3 +17,5 @@ config BOARD_TQ
config BOARD_WOLFVISION
bool
+ select AIODEV
+ select ROCKCHIP_SARADC
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH master v2 3/3] common: boards: wolfvision: fix handling of overlays parameter
2024-05-15 10:35 [PATCH master v2 0/3] Fixes for WolfVision board code library and PF5 mainboard code Michael Riesch
2024-05-15 10:35 ` [PATCH master v2 1/3] arm: boards: add pr_fmt() prefix to wolfvision pf5 board code Michael Riesch
2024-05-15 10:35 ` [PATCH master v2 2/3] common: boards: move dependencies to wolfvision board code library Michael Riesch
@ 2024-05-15 10:35 ` Michael Riesch
2024-05-16 6:11 ` [PATCH master v2 0/3] Fixes for WolfVision board code library and PF5 mainboard code Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Michael Riesch @ 2024-05-15 10:35 UTC (permalink / raw)
To: barebox; +Cc: Michael Riesch
If the char **overlays parameter to wolfvision_rk3568_detect_hw is NULL,
the overlay file names are not collected.
If overlays points to a NULL pointer, it is initialized properly with
an empty string. This is convenient as the call to
globalvar_set("of.overlay.filepattern", my_resulting_string);
that usually follows actually resets the global filepattern variable
from its default "*" to "". Thereby, a paradoxical situation in which no
extensions are detected but all available overlays are applied (due to "*")
is avoided.
Nevertheless, it is still possible to pass an existing string to this
method and let the method append overlay file names.
Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
---
common/boards/wolfvision/common.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/common/boards/wolfvision/common.c b/common/boards/wolfvision/common.c
index f483918cec..08836096b9 100644
--- a/common/boards/wolfvision/common.c
+++ b/common/boards/wolfvision/common.c
@@ -20,7 +20,7 @@ int wolfvision_apply_overlay(const struct wv_overlay *overlay, char **files)
{
int ret;
- if (overlay->filename) {
+ if (overlay->filename && files) {
if (*files) {
char *old = *files;
*files = basprintf("%s %s", old, overlay->filename);
@@ -115,6 +115,9 @@ int wolfvision_rk3568_detect_hw(const struct wv_rk3568_extension *extensions,
if (ret)
return ret;
+ if (overlays && !*overlays)
+ *overlays = xstrdup("");
+
for (i = 0; i < num_extensions; i++) {
const struct wv_rk3568_extension *extension = &extensions[i];
const struct wv_overlay *overlay;
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH master v2 0/3] Fixes for WolfVision board code library and PF5 mainboard code
2024-05-15 10:35 [PATCH master v2 0/3] Fixes for WolfVision board code library and PF5 mainboard code Michael Riesch
` (2 preceding siblings ...)
2024-05-15 10:35 ` [PATCH master v2 3/3] common: boards: wolfvision: fix handling of overlays parameter Michael Riesch
@ 2024-05-16 6:11 ` Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2024-05-16 6:11 UTC (permalink / raw)
To: barebox, Michael Riesch
On Wed, 15 May 2024 12:35:54 +0200, Michael Riesch wrote:
> Habidere,
>
> This series is a follow-up to
> https://lore.barebox.org/barebox/20240412-feature-wolfvision-pf5-v2-0-7e277cc8831b@wolfvision.net/
> and fixes a few things. I tried to reply to said thread and announce a
> v3, but I just found that this reply never hit the list for ... reasons.
>
> [...]
Applied, thanks!
[1/3] arm: boards: add pr_fmt() prefix to wolfvision pf5 board code
https://git.pengutronix.de/cgit/barebox/commit/?id=cfde0d207cd3 (link may not be stable)
[2/3] common: boards: move dependencies to wolfvision board code library
https://git.pengutronix.de/cgit/barebox/commit/?id=adb7cbee7b31 (link may not be stable)
[3/3] common: boards: wolfvision: fix handling of overlays parameter
https://git.pengutronix.de/cgit/barebox/commit/?id=cc211bb091fc (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 5+ messages in thread