* [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT
@ 2024-09-10 13:00 Jerome Forissier
2024-09-10 13:04 ` Sean Anderson
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Jerome Forissier @ 2024-09-10 13:00 UTC (permalink / raw)
To: u-boot
Cc: Ilias Apalodimas, Jerome Forissier, Tom Rini, Lukasz Majewski,
Mattijs Korpershoek, Marek Vasut, Sean Anderson, Simon Glass,
Andre Przywara, Samuel Holland, Lukas Funke, Jonas Karlman,
Miquel Raynal
Make SPL_RAM_SUPPORT a hidden Kconfig symbol, automatically selected
by SPL_RAM_DEVICE or SPL_DFU. Avoids the situation where SPL_RAM_SUPPORT
may be enabled without the other two being enabled, which results in the
following build warning:
common/spl/spl_ram.c:19:14: warning: ‘spl_ram_load_read’ defined but not used [-Wunused-function]
19 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector,
| ^~~~~~~~~~~~~~~~~
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
---
common/spl/Kconfig | 8 ++------
drivers/usb/gadget/Kconfig | 2 +-
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index c08ff064493..885a012461c 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1238,15 +1238,11 @@ config SPL_POWER_DOMAIN
the drivers in drivers/power/domain as part of a SPL build.
config SPL_RAM_SUPPORT
- bool "Support booting from RAM"
- default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
- help
- Enable booting of an image in RAM. The image can be preloaded or
- it can be loaded by SPL directly into RAM (e.g. using USB).
+ bool
config SPL_RAM_DEVICE
bool "Support booting from preloaded image in RAM"
- depends on SPL_RAM_SUPPORT
+ select SPL_RAM_SUPPORT
default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
help
Enable booting of an image already loaded in RAM. The image has to
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 4621a6fd5e6..b1247a9eeae 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -323,7 +323,7 @@ config SPL_DFU
bool "Support DFU (Device Firmware Upgrade) in SPL"
select SPL_HASH
select SPL_DFU_NO_RESET
- depends on SPL_RAM_SUPPORT
+ select SPL_RAM_SUPPORT
help
This feature enables the DFU (Device Firmware Upgrade) in SPL with
RAM memory device support. The ROM code will load and execute
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT
2024-09-10 13:00 [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT Jerome Forissier
@ 2024-09-10 13:04 ` Sean Anderson
2024-09-10 17:22 ` Tom Rini
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Sean Anderson @ 2024-09-10 13:04 UTC (permalink / raw)
To: Jerome Forissier, u-boot
Cc: Ilias Apalodimas, Tom Rini, Lukasz Majewski, Mattijs Korpershoek,
Marek Vasut, Simon Glass, Andre Przywara, Samuel Holland,
Lukas Funke, Jonas Karlman, Miquel Raynal
On 9/10/24 09:00, Jerome Forissier wrote:
> Make SPL_RAM_SUPPORT a hidden Kconfig symbol, automatically selected
> by SPL_RAM_DEVICE or SPL_DFU. Avoids the situation where SPL_RAM_SUPPORT
> may be enabled without the other two being enabled, which results in the
> following build warning:
>
> common/spl/spl_ram.c:19:14: warning: ‘spl_ram_load_read’ defined but not used [-Wunused-function]
> 19 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector,
> | ^~~~~~~~~~~~~~~~~
>
> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
> ---
> common/spl/Kconfig | 8 ++------
> drivers/usb/gadget/Kconfig | 2 +-
> 2 files changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index c08ff064493..885a012461c 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -1238,15 +1238,11 @@ config SPL_POWER_DOMAIN
> the drivers in drivers/power/domain as part of a SPL build.
>
> config SPL_RAM_SUPPORT
> - bool "Support booting from RAM"
> - default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
> - help
> - Enable booting of an image in RAM. The image can be preloaded or
> - it can be loaded by SPL directly into RAM (e.g. using USB).
> + bool
>
> config SPL_RAM_DEVICE
> bool "Support booting from preloaded image in RAM"
> - depends on SPL_RAM_SUPPORT
> + select SPL_RAM_SUPPORT
> default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
> help
> Enable booting of an image already loaded in RAM. The image has to
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 4621a6fd5e6..b1247a9eeae 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -323,7 +323,7 @@ config SPL_DFU
> bool "Support DFU (Device Firmware Upgrade) in SPL"
> select SPL_HASH
> select SPL_DFU_NO_RESET
> - depends on SPL_RAM_SUPPORT
> + select SPL_RAM_SUPPORT
> help
> This feature enables the DFU (Device Firmware Upgrade) in SPL with
> RAM memory device support. The ROM code will load and execute
Reviewed-by: Sean Anderson <seanga2@gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT
2024-09-10 13:00 [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT Jerome Forissier
2024-09-10 13:04 ` Sean Anderson
@ 2024-09-10 17:22 ` Tom Rini
2024-09-12 13:31 ` Mattijs Korpershoek
2024-09-24 23:40 ` Tom Rini
3 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2024-09-10 17:22 UTC (permalink / raw)
To: Jerome Forissier
Cc: u-boot, Ilias Apalodimas, Lukasz Majewski, Mattijs Korpershoek,
Marek Vasut, Sean Anderson, Simon Glass, Andre Przywara,
Samuel Holland, Lukas Funke, Jonas Karlman, Miquel Raynal
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
On Tue, Sep 10, 2024 at 03:00:18PM +0200, Jerome Forissier wrote:
> Make SPL_RAM_SUPPORT a hidden Kconfig symbol, automatically selected
> by SPL_RAM_DEVICE or SPL_DFU. Avoids the situation where SPL_RAM_SUPPORT
> may be enabled without the other two being enabled, which results in the
> following build warning:
>
> common/spl/spl_ram.c:19:14: warning: ‘spl_ram_load_read’ defined but not used [-Wunused-function]
> 19 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector,
> | ^~~~~~~~~~~~~~~~~
>
> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT
2024-09-10 13:00 [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT Jerome Forissier
2024-09-10 13:04 ` Sean Anderson
2024-09-10 17:22 ` Tom Rini
@ 2024-09-12 13:31 ` Mattijs Korpershoek
2024-09-24 23:40 ` Tom Rini
3 siblings, 0 replies; 5+ messages in thread
From: Mattijs Korpershoek @ 2024-09-12 13:31 UTC (permalink / raw)
To: Jerome Forissier, u-boot
Cc: Ilias Apalodimas, Jerome Forissier, Tom Rini, Lukasz Majewski,
Marek Vasut, Sean Anderson, Simon Glass, Andre Przywara,
Samuel Holland, Lukas Funke, Jonas Karlman, Miquel Raynal
Hi Jerome,
Thank you for the patch.
On mar., sept. 10, 2024 at 15:00, Jerome Forissier <jerome.forissier@linaro.org> wrote:
> Make SPL_RAM_SUPPORT a hidden Kconfig symbol, automatically selected
> by SPL_RAM_DEVICE or SPL_DFU. Avoids the situation where SPL_RAM_SUPPORT
> may be enabled without the other two being enabled, which results in the
> following build warning:
>
> common/spl/spl_ram.c:19:14: warning: ‘spl_ram_load_read’ defined but not used [-Wunused-function]
> 19 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector,
> | ^~~~~~~~~~~~~~~~~
>
> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
> ---
> common/spl/Kconfig | 8 ++------
> drivers/usb/gadget/Kconfig | 2 +-
> 2 files changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index c08ff064493..885a012461c 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -1238,15 +1238,11 @@ config SPL_POWER_DOMAIN
> the drivers in drivers/power/domain as part of a SPL build.
>
> config SPL_RAM_SUPPORT
> - bool "Support booting from RAM"
> - default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
> - help
> - Enable booting of an image in RAM. The image can be preloaded or
> - it can be loaded by SPL directly into RAM (e.g. using USB).
> + bool
>
> config SPL_RAM_DEVICE
> bool "Support booting from preloaded image in RAM"
> - depends on SPL_RAM_SUPPORT
> + select SPL_RAM_SUPPORT
> default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
> help
> Enable booting of an image already loaded in RAM. The image has to
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 4621a6fd5e6..b1247a9eeae 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -323,7 +323,7 @@ config SPL_DFU
> bool "Support DFU (Device Firmware Upgrade) in SPL"
> select SPL_HASH
> select SPL_DFU_NO_RESET
> - depends on SPL_RAM_SUPPORT
> + select SPL_RAM_SUPPORT
> help
> This feature enables the DFU (Device Firmware Upgrade) in SPL with
> RAM memory device support. The ROM code will load and execute
> --
> 2.40.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT
2024-09-10 13:00 [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT Jerome Forissier
` (2 preceding siblings ...)
2024-09-12 13:31 ` Mattijs Korpershoek
@ 2024-09-24 23:40 ` Tom Rini
3 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2024-09-24 23:40 UTC (permalink / raw)
To: u-boot, Jerome Forissier
Cc: Ilias Apalodimas, Lukasz Majewski, Mattijs Korpershoek,
Marek Vasut, Sean Anderson, Simon Glass, Andre Przywara,
Samuel Holland, Lukas Funke, Jonas Karlman, Miquel Raynal
On Tue, 10 Sep 2024 15:00:18 +0200, Jerome Forissier wrote:
> Make SPL_RAM_SUPPORT a hidden Kconfig symbol, automatically selected
> by SPL_RAM_DEVICE or SPL_DFU. Avoids the situation where SPL_RAM_SUPPORT
> may be enabled without the other two being enabled, which results in the
> following build warning:
>
> common/spl/spl_ram.c:19:14: warning: ‘spl_ram_load_read’ defined but not used [-Wunused-function]
> 19 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector,
> | ^~~~~~~~~~~~~~~~~
>
> [...]
Applied to u-boot/next, thanks!
--
Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-09-24 23:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 13:00 [PATCH v2] spl: ram: hide SPL_RAM_SUPPORT Jerome Forissier
2024-09-10 13:04 ` Sean Anderson
2024-09-10 17:22 ` Tom Rini
2024-09-12 13:31 ` Mattijs Korpershoek
2024-09-24 23:40 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox