Correct SPL use of ARCH_VERSAL
Subsystems (13)
PATCH v2 26/169 Correct SPL use of ARCH_VERSAL
This converts 1 usage of this option to the non-SPL form, since there is no SPL_ARCH_VERSAL defined in Kconfig
---
(no changes since v1)
drivers/spi/cadence_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/cadence_qspi.c +1 -1
@@ -249,7 +249,7 @@ static int cadence_spi_probe(struct udevice *bus) priv->wr_delay =50 *DIV_ROUND_UP (NSEC_PER_SEC , priv->ref_clk_hz); -if (CONFIG_IS_ENABLED (ARCH_VERSAL )) { +if (IS_ENABLED (CONFIG_ARCH_VERSAL )) {/* Versal platform uses spi calibration to set read delay */ if (priv->read_delay >=0 ) priv->read_delay =-1 ;
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 36/169 Correct SPL uses of CMD_BOOTEFI_BOOTMGR
This converts 3 usages of this option to the non-SPL form, since there is no SPL_CMD_BOOTEFI_BOOTMGR defined in Kconfig
---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
boot/Makefile +1 -1
@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endif
cmd/bootmenu.c +2 -2
@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))/** * prepare_uefi_bootorder_entry() - generate the uefi bootmenu entries *
@@ -343,7 +343,7 @@ static struct bootmenu_data *bootmenu_create(int delay)if (ret <0 ) goto cleanup; -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))if (i <MAX_COUNT -1 ) {efi_status_t efi_ret;
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
Re: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
Quoted 30 lines · Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no
SPL_CMD_BOOTEFI_BOOTMGRdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)boot/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endifcmd/bootmenu.c +0
-0
cmd/bootmenu.c static int prepare_bootmenu_entry(struct bootmenu_data *menu, · line 226
Quoted 5 lines
cmd/bootmenu.c +1
-1@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))
There is no reason whatsoever for using different macros for the two options.
cmd/bootmenu.c static struct bootmenu_data *bootmenu_create(int delay) · line 346
Quoted 9 lines
cmd/bootmenu.c +1
-1/** * prepare_uefi_bootorder_entry() - generate the uefi bootmenu entries * @@ -343,7 +343,7 @@ static struct bootmenu_data *bootmenu_create(int delay)if (ret <0 ) goto cleanup; -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))
ditto
Best regards
Heinrich
Quoted 3 lines
cmd/bootmenu.c +0
-0if (i <MAX_COUNT -1 ) {efi_status_t efi_ret;
Re: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
Quoted 31 lines · Heinrich Schuchardt
Quoted 28 lines · Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no
SPL_CMD_BOOTEFI_BOOTMGRdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)boot/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endifcmd/bootmenu.c +0
-0
Quoted 8 lines
cmd/bootmenu.c static int prepare_bootmenu_entry(struct bootmenu_data *menu, · line 225
Quoted 5 lines
cmd/bootmenu.c +1
-1@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))There is no reason whatsoever for using different macros for the two options.
Here and elsewhere, one CONFIG is being fixed at a time. If at the end of the series this is not fixed, then that's an issue to address.
Signature · 1 line
Tom
Re: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
Quoted 41 lines · Tom Rini
Quoted 31 lines · Heinrich Schuchardt
Quoted 28 lines · Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no
SPL_CMD_BOOTEFI_BOOTMGRdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)boot/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endifcmd/bootmenu.c +0
-0Quoted 8 lines
cmd/bootmenu.c static int prepare_bootmenu_entry(struct bootmenu_data *menu, · line 225
Quoted 5 lines
cmd/bootmenu.c +1
-1@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))There is no reason whatsoever for using different macros for the two options.
Quoted 2 lines
Here and elsewhere, one CONFIG is being fixed at a time. If at the end of the series this is not fixed, then that's an issue to address.
This cannot be reviewed easily. I never received the complete series.
CONFIG_IS_ENABLED() is more restrictive than IS_ENABLED(). No motivation is provided why the condition should be relaxed in the commit message.
Cover-letters are not in the commit history. But anyway the cover-letter does not provide any motivation for the change either.
NAK to this patch.
Best regards
Heinrich
Re: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
Quoted 44 lines · Heinrich Schuchardt
Quoted 41 lines · Tom Rini
Quoted 39 lines · Heinrich Schuchardt
Quoted 29 lines · Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no
SPL_CMD_BOOTEFI_BOOTMGRdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)boot/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endifcmd/bootmenu.c +0
-0cmd/bootmenu.c static int prepare_bootmenu_entry(struct bootmenu_data *menu, · line 225
Quoted 4 lines
cmd/bootmenu.c +1
-1@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))There is no reason whatsoever for using different macros for the two options.
Quoted 4 lines
Quoted 2 lines
Here and elsewhere, one CONFIG is being fixed at a time. If at the end of the series this is not fixed, then that's an issue to address.
This cannot be reviewed easily. I never received the complete series.
This, and the related series, are among the most reviewed we've had in quite some time. Just FWIW.
Quoted 2 lines
CONFIG_IS_ENABLED()is more restrictive thanIS_ENABLED(). No motivation is provided why the condition should be relaxed in the commit message.
The idea of "restrictive" is not how either of those macros should be evaluated.
Quoted 4 lines
Cover-letters are not in the commit history. But anyway the cover-letter does not provide any motivation for the change either.
NAK to this patch.
It's incorrect to use CONFIG_IS_ENABLED() instead of IS_ENABLED() outside of:
- CONFIG_FOO, CONFIG_SPL_FOO (etc) exist
- The code in question is compiled in the SPL (etc) context and we do need to know if the code block in question is required here and the implicit value of SPL_FOO being false is useful.
This case is why Simon insists that adding def_bool n for SPL_EFI_LOADER, etc, is correct, but I'm not convinced.
I will be taking most of these patches in the next day or two, but I can avoid the EFI ones if you insist. They are however I believe correct.
Signature · 1 line
Tom
Re: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
Hi Tom,
Quoted 65 lines · Tom Rini
Quoted 44 lines · Heinrich Schuchardt
Quoted 41 lines · Tom Rini
Quoted 39 lines · Heinrich Schuchardt
Quoted 29 lines · Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no
SPL_CMD_BOOTEFI_BOOTMGRdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)boot/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endifcmd/bootmenu.c +0
-0cmd/bootmenu.c static int prepare_bootmenu_entry(struct bootmenu_data *menu, · line 225
Quoted 4 lines
cmd/bootmenu.c +1
-1@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))There is no reason whatsoever for using different macros for the two options.
Quoted 4 lines
Quoted 2 lines
Here and elsewhere, one CONFIG is being fixed at a time. If at the end of the series this is not fixed, then that's an issue to address.
This cannot be reviewed easily. I never received the complete series.
This, and the related series, are among the most reviewed we've had in quite some time. Just FWIW.
Quoted 2 lines
CONFIG_IS_ENABLED()is more restrictive thanIS_ENABLED(). No motivation is provided why the condition should be relaxed in the commit message.The idea of "restrictive" is not how either of those macros should be evaluated.
Quoted 4 lines
Cover-letters are not in the commit history. But anyway the cover-letter does not provide any motivation for the change either.
NAK to this patch.
Quoted 8 lines
It's incorrect to use
CONFIG_IS_ENABLED()instead ofIS_ENABLED()outside of:
-CONFIG_FOO,CONFIG_SPL_FOO(etc) exist
- The code in question is compiled in the SPL (etc) context and we do need to know if the code block in question is required here and the implicit value ofSPL_FOObeing false is useful.
This case is why Simon insists that addingdef_booln forSPL_EFI_LOADER, etc, is correct, but I'm not convinced.
The issue here is that we need a way to determine whether an option like CONFIG_FOO should apply to all build phases, or only U-Boot proper. The def_bool business creates an SPL symbol, so U-Boot then knows that the option applies only to U-Boot proper, with a separate one for CONFIG_SPL_FOO
There is a file call scripts/conf_nospl (in splc) which lists options that are exceptions. Otherwise we would need more of these def_bool things. The thing is, I don't really like the conf_nospl file, since it is configuring the operation of Kconfig but is not actually in the Kconfig description. So for things where I thought it was defensible, I added a def_bool.
Quoted 6 lines
I will be taking most of these patches in the next day or two, but I can avoid the EFI ones if you insist. They are however I believe correct.
--
Tom
Regards,
Simon
Re: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
Quoted 77 lines · Simon Glass
Hi Tom,
Quoted 65 lines · Tom Rini
Quoted 44 lines · Heinrich Schuchardt
Quoted 41 lines · Tom Rini
Quoted 39 lines · Heinrich Schuchardt
Quoted 29 lines · Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no
SPL_CMD_BOOTEFI_BOOTMGRdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)boot/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endifcmd/bootmenu.c +0
-0cmd/bootmenu.c static int prepare_bootmenu_entry(struct bootmenu_data *menu, · line 225
Quoted 4 lines
cmd/bootmenu.c +1
-1@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))There is no reason whatsoever for using different macros for the two options.
Quoted 4 lines
Quoted 2 lines
Here and elsewhere, one CONFIG is being fixed at a time. If at the end of the series this is not fixed, then that's an issue to address.
This cannot be reviewed easily. I never received the complete series.
This, and the related series, are among the most reviewed we've had in quite some time. Just FWIW.
Quoted 2 lines
CONFIG_IS_ENABLED()is more restrictive thanIS_ENABLED(). No motivation is provided why the condition should be relaxed in the commit message.The idea of "restrictive" is not how either of those macros should be evaluated.
Quoted 4 lines
Cover-letters are not in the commit history. But anyway the cover-letter does not provide any motivation for the change either.
NAK to this patch.
Quoted 8 lines
It's incorrect to use
CONFIG_IS_ENABLED()instead ofIS_ENABLED()outside of:
-CONFIG_FOO,CONFIG_SPL_FOO(etc) exist
- The code in question is compiled in the SPL (etc) context and we do need to know if the code block in question is required here and the implicit value ofSPL_FOObeing false is useful.
This case is why Simon insists that addingdef_booln forSPL_EFI_LOADER, etc, is correct, but I'm not convinced.
Quoted 5 lines
The issue here is that we need a way to determine whether an option like
CONFIG_FOOshould apply to all build phases, or only U-Boot proper. Thedef_boolbusiness creates an SPL symbol, so U-Boot then knows that the option applies only to U-Boot proper, with a separate one forCONFIG_SPL_FOO
Please bear in mind that today a lack of definition works, and is a feature, not a bug nor glitch. It's why, today, the tests in lib/vsprintf.c are correct.
Quoted 6 lines
There is a file call
scripts/conf_nospl(in splc) which lists options that are exceptions. Otherwise we would need more of thesedef_boolthings. The thing is, I don't really like theconf_nosplfile, since it is configuring the operation ofKconfigbut is not actually in theKconfigdescription. So for things where I thought it was defensible, I added adef_bool.
Keep in mind that everything works as intended, today. What's being done in the EFI loader code works, but is a bad practice. It's what lead to the MMC_QUIRKS actual bug and time being lost debugging a problem that shouldn't have been.
What split config introduces / requires is for discussion over *there*.
Signature · 1 line
Tom
Heinrich Schuchardt
Acked-byRe: [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR
In reply to Tom RiniQuoted 73 lines · Tom Rini
Quoted 44 lines · Heinrich Schuchardt
Quoted 41 lines · Tom Rini
Quoted 39 lines · Heinrich Schuchardt
Quoted 29 lines · Simon Glass
This converts 3 usages of this option to the non-SPL form, since there is no
SPL_CMD_BOOTEFI_BOOTMGRdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
boot/Makefile | 2 +- cmd/bootmenu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)boot/Makefile +1
-1@@ -29,7 +29,7 @@ obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_EFILOADER) += bootmeth_efi.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SANDBOX) += bootmeth_sandbox.o obj-$(CONFIG_$(SPL_TPL_)BOOTMETH_SCRIPT) += bootmeth_script.o ifdef CONFIG_$(SPL_TPL_)BOOTSTD_FULL -obj-$(CONFIG_$(SPL_TPL_)CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o +obj-$(CONFIG_CMD_BOOTEFI_BOOTMGR) += bootmeth_efi_mgr.o obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += bootflow_menu.o endifcmd/bootmenu.c +0
-0cmd/bootmenu.c static int prepare_bootmenu_entry(struct bootmenu_data *menu, · line 225
Quoted 4 lines
cmd/bootmenu.c +1
-1@@ -223,7 +223,7 @@ static int prepare_bootmenu_entry(struct bootmenu_data *menu,return 1 ; } -#if (CONFIG_IS_ENABLED (CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG )) +#if (IS_ENABLED (CONFIG_CMD_BOOTEFI_BOOTMGR )) && (CONFIG_IS_ENABLED (CMD_EFICONFIG ))There is no reason whatsoever for using different macros for the two options.
Quoted 4 lines
Quoted 2 lines
Here and elsewhere, one CONFIG is being fixed at a time. If at the end of the series this is not fixed, then that's an issue to address.
This cannot be reviewed easily. I never received the complete series.
This, and the related series, are among the most reviewed we've had in quite some time. Just FWIW.
Quoted 2 lines
CONFIG_IS_ENABLED()is more restrictive thanIS_ENABLED(). No motivation is provided why the condition should be relaxed in the commit message.The idea of "restrictive" is not how either of those macros should be evaluated.
Quoted 4 lines
Cover-letters are not in the commit history. But anyway the cover-letter does not provide any motivation for the change either.
NAK to this patch.
It's incorrect to use
CONFIG_IS_ENABLED()instead ofIS_ENABLED()outside of:
-CONFIG_FOO,CONFIG_SPL_FOO(etc) exist
- The code in question is compiled in the SPL (etc) context and we do need to know if the code block in question is required here and the implicit value ofSPL_FOObeing false is useful.
This case is why Simon insists that addingdef_booln forSPL_EFI_LOADER, etc, is correct, but I'm not convinced.
Quoted 3 lines
I will be taking most of these patches in the next day or two, but I can avoid the EFI ones if you insist. They are however I believe correct.
The code changes are ok with me. It were simply the commit messages which were insufficient.
PATCH v2 65/169 Correct SPL uses of DISPLAY_AER_BRIEF
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_DISPLAY_AER_BRIEF defined in Kconfig
---
(no changes since v1)
drivers/sysreset/sysreset_mpc83xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/sysreset/sysreset_mpc83xx.c +2 -2
@@ -120,7 +120,7 @@ static int print_83xx_arb_event(bool force, char *buf, int size)"Master ID" , mstr_id, master[mstr_id],"Transfer Size" , tsize_val, tsize_bytes, "Transfer Type", ttype, transfer[ttype]); - }else if (CONFIG_IS_ENABLED (DISPLAY_AER_BRIEF )) { + }else if (IS_ENABLED (CONFIG_DISPLAY_AER_BRIEF )) { res = snprintf(buf, size, "Arbiter Event Status: AEATR=0x%08lX, AEADR=0x%08lX\n", gd->arch.arbiter_event_attributes,
@@ -185,7 +185,7 @@ static int mpc83xx_sysreset_get_status(struct udevice *dev, char *buf, int size)* arbiter driver */ if (CONFIG_IS_ENABLED (DISPLAY_AER_FULL ) || -CONFIG_IS_ENABLED (DISPLAY_AER_BRIEF )) { +IS_ENABLED (CONFIG_DISPLAY_AER_BRIEF )) {/* * If there was a bus monitor reset event, we force the arbiter * event to be printed
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 75/169 Correct SPL use of EFI_MM_COMM_TEE
In reply to Simon GlassThis converts 1 usage of this option to the non-SPL form, since there is no SPL_EFI_MM_COMM_TEE defined in Kconfig
---
(no changes since v1)
cmd/eficonfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/eficonfig.c +1 -1
@@ -2670,7 +2670,7 @@ static const struct eficonfig_item maintenance_menu_items[] = { {"Edit Boot Option", eficonfig_process_edit_boot_option}, {"Change Boot Order", eficonfig_process_change_boot_order}, {"Delete Boot Option", eficonfig_process_delete_boot_option}, -#if (CONFIG_IS_ENABLED(EFI_SECURE_BOOT) && CONFIG_IS_ENABLED(EFI_MM_COMM_TEE)) +#if (CONFIG_IS_ENABLED(EFI_SECURE_BOOT) && IS_ENABLED(CONFIG_EFI_MM_COMM_TEE)) {"Secure Boot Configuration", eficonfig_process_secure_boot_config}, #endif {"Quit", eficonfig_process_quit},
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
Re: [PATCH v2 075/169] Correct SPL use of EFI_MM_COMM_TEE
Quoted 16 lines · Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no
SPL_EFI_MM_COMM_TEEdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
cmd/eficonfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)cmd/eficonfig.c +0
-0
cmd/eficonfig.c static const struct eficonfig_item maintenance_menu_items[] = { · line 2673
Quoted 5 lines
cmd/eficonfig.c +1
-1@@ -2670,7 +2670,7 @@ static const struct eficonfig_item maintenance_menu_items[] = { {"Edit Boot Option", eficonfig_process_edit_boot_option}, {"Change Boot Order", eficonfig_process_change_boot_order}, {"Delete Boot Option", eficonfig_process_delete_boot_option}, -#if (CONFIG_IS_ENABLED(EFI_SECURE_BOOT) && CONFIG_IS_ENABLED(EFI_MM_COMM_TEE)) +#if (CONFIG_IS_ENABLED(EFI_SECURE_BOOT) && IS_ENABLED(CONFIG_EFI_MM_COMM_TEE))
There is no reason to use two different macros here.
Best regards
Heinrich
Quoted 3 lines
cmd/eficonfig.c +0
-0{"Secure Boot Configuration", eficonfig_process_secure_boot_config}, #endif {"Quit", eficonfig_process_quit},
PATCH v2 83/169 Correct SPL uses of FASTBOOT
In reply to Simon GlassThis converts 3 usages of this option to the non-SPL form, since there is no SPL_FASTBOOT defined in Kconfig
---
(no changes since v1)
arch/arm/mach-rockchip/board.c | 2 +- board/ti/am57xx/board.c | 2 +- board/ti/dra7xx/evm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-rockchip/board.c +1 -1
@@ -306,7 +306,7 @@ int board_usb_init(int index, enum usb_init_type init)#endif /* CONFIG_USB_GADGET */ -#if CONFIG_IS_ENABLED (FASTBOOT ) +#if IS_ENABLED (CONFIG_FASTBOOT )int fastboot_set_reboot_flag (enum fastboot_reboot_reason reason) {if (reason !=FASTBOOT_REBOOT_REASON_BOOTLOADER )
board/ti/am57xx/board.c +1 -1
@@ -1172,7 +1172,7 @@ int board_fit_config_name_match(const char *name) }#endif -#if CONFIG_IS_ENABLED (FASTBOOT ) && !CONFIG_IS_ENABLED (ENV_IS_NOWHERE ) +#if IS_ENABLED (CONFIG_FASTBOOT ) && !CONFIG_IS_ENABLED (ENV_IS_NOWHERE )int fastboot_set_reboot_flag (enum fastboot_reboot_reason reason) {if (reason !=FASTBOOT_REBOOT_REASON_BOOTLOADER )
board/ti/dra7xx/evm.c +1 -1
@@ -1049,7 +1049,7 @@ int board_fit_config_name_match(const char *name) }#endif -#if CONFIG_IS_ENABLED (FASTBOOT ) && !CONFIG_IS_ENABLED (ENV_IS_NOWHERE ) +#if IS_ENABLED (CONFIG_FASTBOOT ) && !CONFIG_IS_ENABLED (ENV_IS_NOWHERE )int fastboot_set_reboot_flag (enum fastboot_reboot_reason reason) {if (reason !=FASTBOOT_REBOOT_REASON_BOOTLOADER )
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 85/169 Correct SPL uses of FASTBOOT_FLASH_MMC
In reply to Simon GlassThis converts 5 usages of this option to the non-SPL form, since there is no SPL_FASTBOOT_FLASH_MMC defined in Kconfig
---
(no changes since v1)
drivers/fastboot/fb_command.c | 4 ++-- drivers/fastboot/fb_common.c | 2 +- drivers/fastboot/fb_getvar.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/fastboot/fb_command.c +2 -2
@@ -295,7 +295,7 @@ void fastboot_data_complete(char *response)*/ static void __maybe_unused flash (char *cmd_parameter,char *response) { -if (CONFIG_IS_ENABLED (FASTBOOT_FLASH_MMC )) +if (IS_ENABLED (CONFIG_FASTBOOT_FLASH_MMC ))fastboot_mmc_flash_write (cmd_parameter, fastboot_buf_addr, image_size, response);
@@ -315,7 +315,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)*/ static void __maybe_unused erase (char *cmd_parameter,char *response) { -if (CONFIG_IS_ENABLED (FASTBOOT_FLASH_MMC )) +if (IS_ENABLED (CONFIG_FASTBOOT_FLASH_MMC ))fastboot_mmc_erase (cmd_parameter, response);if (CONFIG_IS_ENABLED (FASTBOOT_FLASH_NAND ))
drivers/fastboot/fb_common.c +1 -1
@@ -99,7 +99,7 @@ int __weak fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)const int mmc_dev =config_opt_enabled (CONFIG_FASTBOOT_FLASH_MMC ,CONFIG_FASTBOOT_FLASH_MMC_DEV ,-1 ); -if (!CONFIG_IS_ENABLED (FASTBOOT_FLASH_MMC )) +if (!IS_ENABLED (CONFIG_FASTBOOT_FLASH_MMC ))return -EINVAL ;if (reason >=FASTBOOT_REBOOT_REASONS_COUNT )
drivers/fastboot/fb_getvar.c +2 -2
@@ -62,7 +62,7 @@ static const struct { .variable = "has-slot", .dispatch = getvar_has_slot#endif -#if CONFIG_IS_ENABLED (FASTBOOT_FLASH_MMC ) +#if IS_ENABLED (CONFIG_FASTBOOT_FLASH_MMC ) }, { .variable = "partition-type", .dispatch = getvar_partition_type
@@ -99,7 +99,7 @@ static int getvar_get_part_info(const char *part_name, char *response,struct disk_partition disk_part;struct part_info *part_info; -if (CONFIG_IS_ENABLED (FASTBOOT_FLASH_MMC )) { +if (IS_ENABLED (CONFIG_FASTBOOT_FLASH_MMC )) { r =fastboot_mmc_get_part_info (part_name, &dev_desc, &disk_part, response);if (r >=0 && size)
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 86/169 Correct SPL uses of FASTBOOT_FLASH_NAND
In reply to Simon GlassThis converts 3 usages of this option to the non-SPL form, since there is no SPL_FASTBOOT_FLASH_NAND defined in Kconfig
---
(no changes since v1)
drivers/fastboot/fb_command.c | 4 ++-- drivers/fastboot/fb_getvar.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/fastboot/fb_command.c +2 -2
@@ -299,7 +299,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)fastboot_mmc_flash_write (cmd_parameter, fastboot_buf_addr, image_size, response); -if (CONFIG_IS_ENABLED (FASTBOOT_FLASH_NAND )) +if (IS_ENABLED (CONFIG_FASTBOOT_FLASH_NAND ))fastboot_nand_flash_write (cmd_parameter, fastboot_buf_addr, image_size, response); }
@@ -318,7 +318,7 @@ static void __maybe_unused erase(char *cmd_parameter, char *response)if (IS_ENABLED (CONFIG_FASTBOOT_FLASH_MMC ))fastboot_mmc_erase (cmd_parameter, response); -if (CONFIG_IS_ENABLED (FASTBOOT_FLASH_NAND )) +if (IS_ENABLED (CONFIG_FASTBOOT_FLASH_NAND ))fastboot_nand_erase (cmd_parameter, response); }
drivers/fastboot/fb_getvar.c +1 -1
@@ -104,7 +104,7 @@ static int getvar_get_part_info(const char *part_name, char *response, response);if (r >=0 && size) *size = disk_part.size * disk_part.blksz; - }else if (CONFIG_IS_ENABLED (FASTBOOT_FLASH_NAND )) { + }else if (IS_ENABLED (CONFIG_FASTBOOT_FLASH_NAND )) { r =fastboot_nand_get_part_info (part_name, &part_info, response);if (r >=0 && size) *size = part_info->size;
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 89/169 Correct SPL uses of FEC_MXC
In reply to Simon GlassThis converts 4 usages of this option to the non-SPL form, since there is no SPL_FEC_MXC defined in Kconfig
---
(no changes since v1)
board/engicam/imx8mp/icore_mx8mp.c | 2 +- board/freescale/imx8mp_evk/imx8mp_evk.c | 2 +- board/freescale/imx93_evk/imx93_evk.c | 2 +- board/variscite/imx8mn_var_som/imx8mn_var_som.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
board/engicam/imx8mp/icore_mx8mp.c +1 -1
@@ -58,7 +58,7 @@ int board_phy_config(struct phy_device *phydev)int board_init (void ) { -if (CONFIG_IS_ENABLED (FEC_MXC )) +if (IS_ENABLED (CONFIG_FEC_MXC ))setup_fec ();if (IS_ENABLED (CONFIG_DWC_ETH_QOS ))
board/freescale/imx8mp_evk/imx8mp_evk.c +1 -1
@@ -55,7 +55,7 @@ int board_init(void) {int ret =0 ; -if (CONFIG_IS_ENABLED (FEC_MXC )) { +if (IS_ENABLED (CONFIG_FEC_MXC )) {setup_fec (); }
board/freescale/imx93_evk/imx93_evk.c +1 -1
@@ -66,7 +66,7 @@ static int setup_eqos(void)int board_init (void ) { -if (CONFIG_IS_ENABLED (FEC_MXC )) +if (IS_ENABLED (CONFIG_FEC_MXC ))setup_fec ();if (IS_ENABLED (CONFIG_DWC_ETH_QOS ))
board/variscite/imx8mn_var_som/imx8mn_var_som.c +1 -1
@@ -18,7 +18,7 @@ static void setup_fec(void)int board_init (void ) { -if (CONFIG_IS_ENABLED (FEC_MXC )) +if (IS_ENABLED (CONFIG_FEC_MXC ))setup_fec ();return 0 ;
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 115/169 Correct SPL uses of OF_BOARD
In reply to Simon GlassThis converts 3 usages of this option to the non-SPL form, since there is no SPL_OF_BOARD defined in Kconfig
---
(no changes since v1)
drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 2 +- drivers/serial/serial_bcm283x_mu.c | 2 +- drivers/serial/serial_bcm283x_pl011.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/pinctrl/broadcom/pinctrl-bcm283x.c +1 -1
@@ -153,7 +153,7 @@ U_BOOT_DRIVER(pinctrl_bcm283x) = { .priv_auto = sizeof(struct bcm283x_pinctrl_priv), .ops = &bcm283x_pinctrl_ops, .probe = bcm283x_pinctl_probe, -#if CONFIG_IS_ENABLED (OF_BOARD ) +#if IS_ENABLED (CONFIG_OF_BOARD ) .flags = DM_FLAG_PRE_RELOC,#endif };
drivers/serial/serial_bcm283x_mu.c +1 -1
@@ -197,7 +197,7 @@ U_BOOT_DRIVER(serial_bcm283x_mu) = { .plat_auto = sizeof(struct bcm283x_mu_serial_plat), .probe = bcm283x_mu_serial_probe, .ops = &bcm283x_mu_serial_ops, -#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD) +#if !CONFIG_IS_ENABLED(OF_CONTROL) || IS_ENABLED(CONFIG_OF_BOARD) .flags = DM_FLAG_PRE_RELOC, #endif .priv_auto = sizeof(struct bcm283x_mu_priv),
drivers/serial/serial_bcm283x_pl011.c +1 -1
@@ -94,7 +94,7 @@ U_BOOT_DRIVER(bcm283x_pl011_uart) = { .probe = bcm283x_pl011_serial_probe, .plat_auto = sizeof(struct pl01x_serial_plat), .ops = &bcm283x_pl011_serial_ops, -#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD) +#if !CONFIG_IS_ENABLED(OF_CONTROL) || IS_ENABLED(CONFIG_OF_BOARD) .flags = DM_FLAG_PRE_RELOC, #endif .priv_auto = sizeof(struct pl01x_priv),
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 117/169 Correct SPL use of PANEL
In reply to Simon GlassThis converts 1 usage of this option to the non-SPL form, since there is no SPL_PANEL defined in Kconfig
---
(no changes since v1)
drivers/video/imx/mxc_ipuv3_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/imx/mxc_ipuv3_fb.c +1 -1
@@ -615,7 +615,7 @@ static int ipuv3_video_probe(struct udevice *dev)if (ret <0 )return ret;#endif -if (CONFIG_IS_ENABLED (PANEL )) { +if (IS_ENABLED (CONFIG_PANEL )) {struct udevice *panel_dev; ret =uclass_get_device (UCLASS_PANEL ,0 , &panel_dev);
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 123/169 Correct SPL use of PHY_CADENCE_SIERRA
In reply to Simon GlassThis converts 1 usage of this option to the non-SPL form, since there is no SPL_PHY_CADENCE_SIERRA defined in Kconfig
---
(no changes since v1)
drivers/phy/cadence/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/cadence/Makefile +1 -1
@@ -1,2 +1,2 @@ -obj-$(CONFIG_$(SPL_)PHY_CADENCE_SIERRA) += phy-cadence-sierra.o +obj-$(CONFIG_PHY_CADENCE_SIERRA) += phy-cadence-sierra.o obj-$(CONFIG_$(SPL_)PHY_CADENCE_TORRENT) += phy-cadence-torrent.o
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 124/169 Correct SPL use of PHY_CADENCE_TORRENT
In reply to Simon GlassThis converts 1 usage of this option to the non-SPL form, since there is no SPL_PHY_CADENCE_TORRENT defined in Kconfig
---
(no changes since v1)
drivers/phy/cadence/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/cadence/Makefile +1 -1
@@ -1,2 +1,2 @@ obj-$(CONFIG_PHY_CADENCE_SIERRA) += phy-cadence-sierra.o -obj-$(CONFIG_$(SPL_)PHY_CADENCE_TORRENT) += phy-cadence-torrent.o +obj-$(CONFIG_PHY_CADENCE_TORRENT) += phy-cadence-torrent.o
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 126/169 Correct SPL uses of PMIC_STPMIC1
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_PMIC_STPMIC1 defined in Kconfig
---
(no changes since v1)
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c +2 -2
@@ -1583,7 +1583,7 @@ int stm32prog_pmic_read(struct stm32prog_data *data, u32 offset, u8 *buffer,int result =0 , ret;struct udevice *dev; -if (!CONFIG_IS_ENABLED (PMIC_STPMIC1 )) { +if (!IS_ENABLED (CONFIG_PMIC_STPMIC1 )) {stm32prog_err ("PMIC update not supported" );return -EOPNOTSUPP ;
@@ -1633,7 +1633,7 @@ int stm32prog_pmic_start(struct stm32prog_data *data)int ret;struct udevice *dev; -if (!CONFIG_IS_ENABLED (PMIC_STPMIC1 )) { +if (!IS_ENABLED (CONFIG_PMIC_STPMIC1 )) {stm32prog_err ("PMIC update not supported" );return -EOPNOTSUPP ;
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 132/169 Correct SPL uses of ROCKCHIP_OTP
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_ROCKCHIP_OTP defined in Kconfig
---
(no changes since v1)
arch/arm/mach-rockchip/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-rockchip/misc.c +2 -2
@@ -60,7 +60,7 @@ int rockchip_cpuid_from_efuse(const u32 cpuid_offset,const u32 cpuid_length, u8 *cpuid) { -#if IS_ENABLED(CONFIG_ROCKCHIP_EFUSE) || CONFIG_IS_ENABLED(ROCKCHIP_OTP) +#if IS_ENABLED(CONFIG_ROCKCHIP_EFUSE) || IS_ENABLED(CONFIG_ROCKCHIP_OTP) struct udevice *dev;int ret;
@@ -68,7 +68,7 @@ int rockchip_cpuid_from_efuse(const u32 cpuid_offset,#if IS_ENABLED (CONFIG_ROCKCHIP_EFUSE ) ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_efuse), &dev); -#elif CONFIG_IS_ENABLED (ROCKCHIP_OTP ) +#elif IS_ENABLED (CONFIG_ROCKCHIP_OTP ) ret =uclass_get_device_by_driver (UCLASS_MISC ,DM_DRIVER_GET (rockchip_otp), &dev);#endif
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 136/169 Correct SPL uses of SAVE_PREV_BL_INITRAMFS_START_ADDR
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_SAVE_PREV_BL_INITRAMFS_START_ADDR defined in Kconfig
---
(no changes since v1)
arch/arm/lib/save_prev_bl_data.c | 2 +- common/board_r.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/lib/save_prev_bl_data.c +1 -1
@@ -62,7 +62,7 @@ int save_prev_bl_data(void)if (IS_ENABLED (CONFIG_SAVE_PREV_BL_FDT_ADDR ))env_set_addr ("prevbl_fdt_addr" , (void *)reg0); -if (!CONFIG_IS_ENABLED (SAVE_PREV_BL_INITRAMFS_START_ADDR )) +if (!IS_ENABLED (CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR ))return 0 ; node =fdt_path_offset (fdt_blob,"/chosen" );
common/board_r.c +1 -1
@@ -452,7 +452,7 @@ static int initr_env(void)env_set_hex ("fdtcontroladdr" , (unsigned long )map_to_sysmem (gd->fdt_blob)); -#if (CONFIG_IS_ENABLED (SAVE_PREV_BL_INITRAMFS_START_ADDR ) || \ +#if (IS_ENABLED (CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR ) || \IS_ENABLED (CONFIG_SAVE_PREV_BL_FDT_ADDR ))save_prev_bl_data ();#endif
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 137/169 Correct SPL uses of SEC_FIRMWARE_ARMV8_PSCI
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_SEC_FIRMWARE_ARMV8_PSCI defined in Kconfig
---
(no changes since v1)
arch/arm/cpu/armv8/cpu-dt.c | 2 +- arch/arm/lib/bootm-fdt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/cpu-dt.c +1 -1
@@ -18,7 +18,7 @@ __weak int psci_update_dt(void *fdt)* number to support detecting PSCI dynamically and then switching * the SMP boot method between PSCI and spin-table. */ -if (CONFIG_IS_ENABLED (SEC_FIRMWARE_ARMV8_PSCI ) && +if (IS_ENABLED (CONFIG_SEC_FIRMWARE_ARMV8_PSCI ) &&sec_firmware_support_psci_version () ==PSCI_INVALID_VER )return 0 ;
arch/arm/lib/bootm-fdt.c +1 -1
@@ -64,7 +64,7 @@ int arch_fixup_fdt(void *blob)#endif #if defined(CONFIG_ARMV7_NONSEC ) || defined(CONFIG_ARMV8_PSCI ) || \ -CONFIG_IS_ENABLED (SEC_FIRMWARE_ARMV8_PSCI ) +IS_ENABLED (CONFIG_SEC_FIRMWARE_ARMV8_PSCI ) ret =psci_update_dt (blob);if (ret)return ret;
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
Re: [PATCH v2 137/169] Correct SPL uses of SEC_FIRMWARE_ARMV8_PSCI
Quoted 4 lines · Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no
SPL_SEC_FIRMWARE_ARMV8_PSCIdefined inKconfigSigned-off-by Simon Glass <[email protected]>
This usage avoids adding the fixup for arch_fixup_fdt to SPL where we don't need it.
Signature · 1 line
Tom
Re: [PATCH v2 137/169] Correct SPL uses of SEC_FIRMWARE_ARMV8_PSCI
Hi Tom,
Quoted 10 lines · Tom Rini
Quoted 4 lines · Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no
SPL_SEC_FIRMWARE_ARMV8_PSCIdefined inKconfigSigned-off-by Simon Glass <[email protected]>This usage avoids adding the fixup for
arch_fixup_fdtto SPL where we don't need it.
I'll add this to config_nospl
Regards,
Simon
PATCH v2 141/169 Correct SPL use of SPI_FLASH_BAR
In reply to Simon GlassThis converts 1 usage of this option to the non-SPL form, since there is no SPL_SPI_FLASH_BAR defined in Kconfig
---
(no changes since v1)
drivers/mtd/spi/spi-nor-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/spi/spi-nor-core.c +1 -1
@@ -3894,7 +3894,7 @@ void spi_nor_set_fixups(struct spi_nor *nor) } } -if (CONFIG_IS_ENABLED (SPI_FLASH_BAR ) && +if (IS_ENABLED (CONFIG_SPI_FLASH_BAR ) && !strcmp (nor->info->name,"s25fl256l" )) nor->fixups = &s25fl256l_fixups;#endif
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
Re: [PATCH v2 141/169] Correct SPL use of SPI_FLASH_BAR
Quoted 4 lines · Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no
SPL_SPI_FLASH_BARdefined inKconfigSigned-off-by Simon Glass <[email protected]>
This is used to avoid unused code on at least xilinx_zynqmp_virt.
Signature · 1 line
Tom
Re: [PATCH v2 141/169] Correct SPL use of SPI_FLASH_BAR
Hi Tom,
Quoted 9 lines · Tom Rini
Quoted 4 lines · Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no
SPL_SPI_FLASH_BARdefined inKconfigSigned-off-by Simon Glass <[email protected]>This is used to avoid unused code on at least
xilinx_zynqmp_virt.
I'll add this to config_nospl
Regards,
Simon
PATCH v2 142/169 Correct SPL uses of SPI_FLASH_MACRONIX
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_SPI_FLASH_MACRONIX defined in Kconfig
---
(no changes since v1)
drivers/mtd/spi/spi-nor-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/spi/spi-nor-core.c +2 -2
@@ -3645,7 +3645,7 @@ static struct spi_nor_fixups mt35xu512aba_fixups = { };#endif /* CONFIG_SPI_FLASH_MT35XU */ -#if CONFIG_IS_ENABLED (SPI_FLASH_MACRONIX ) +#if IS_ENABLED (CONFIG_SPI_FLASH_MACRONIX )/** * spi_nor_macronix_octal_dtr_enable() - Enable octal DTR on Macronix flashes. * @nor: pointer to a 'struct spi_nor'
@@ -3904,7 +3904,7 @@ void spi_nor_set_fixups(struct spi_nor *nor) nor->fixups = &mt35xu512aba_fixups;#endif -#if CONFIG_IS_ENABLED (SPI_FLASH_MACRONIX ) +#if IS_ENABLED (CONFIG_SPI_FLASH_MACRONIX ) nor->fixups = ¯onix_octal_fixups;#endif /* SPI_FLASH_MACRONIX */ }
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
Re: [PATCH v2 142/169] Correct SPL uses of SPI_FLASH_MACRONIX
Quoted 10 lines · Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no
SPL_SPI_FLASH_MACRONIXdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
(no changes since v1)
drivers/mtd/spi/spi-nor-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
This increases size on at least xilinx_zynqmp_virt.
Signature · 1 line
Tom
Re: [PATCH v2 142/169] Correct SPL uses of SPI_FLASH_MACRONIX
Hi Tom,
Quoted 9 lines · Tom Rini
Quoted 6 lines · Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no
SPL_SPI_FLASH_MACRONIXdefined inKconfigSigned-off-by Simon Glass <[email protected]>---
Quoted 6 lines
Quoted 4 lines
(no changes since v1)
drivers/mtd/spi/spi-nor-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)This increases size on at least
xilinx_zynqmp_virt.
I'll add this to config_nospl
Regards,
Simon
PATCH v2 143/169 Correct SPL use of SPLASH_SOURCE
In reply to Simon GlassThis converts 1 usage of this option to the non-SPL form, since there is no SPL_SPLASH_SOURCE defined in Kconfig
---
(no changes since v1)
common/splash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/splash.c +1 -1
@@ -89,7 +89,7 @@ static inline int splash_video_logo_load(void) { return -ENOSYS; }__weak int splash_screen_prepare (void ) { -if (CONFIG_IS_ENABLED (SPLASH_SOURCE )) +if (IS_ENABLED (CONFIG_SPLASH_SOURCE ))return splash_source_load (default_splash_locations,ARRAY_SIZE (default_splash_locations));
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 149/169 Correct SPL uses of TARGET_LX2160ARDB
In reply to Simon GlassThis converts 3 usages of this option to the non-SPL form, since there is no SPL_TARGET_LX2160ARDB defined in Kconfig
---
(no changes since v1)
board/freescale/lx2160a/lx2160a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
board/freescale/lx2160a/lx2160a.c +3 -3
@@ -676,7 +676,7 @@ void board_quiesce_devices(void) }#endif -#if CONFIG_IS_ENABLED (TARGET_LX2160ARDB ) +#if IS_ENABLED (CONFIG_TARGET_LX2160ARDB )int fdt_fixup_add_thermal (void *blob,int mux_node,int channel,int reg) {int err;
@@ -798,7 +798,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)u64 mc_memory_size =0 ;u16 total_memory_banks;int err; -#if CONFIG_IS_ENABLED (TARGET_LX2160ARDB ) +#if IS_ENABLED (CONFIG_TARGET_LX2160ARDB )u8 board_rev;#endif
@@ -862,7 +862,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)#endif fdt_fixup_icid (blob); -#if CONFIG_IS_ENABLED (TARGET_LX2160ARDB ) +#if IS_ENABLED (CONFIG_TARGET_LX2160ARDB ) board_rev = (QIXIS_READ (arch) &0xf ) -1 +'A' ;if (board_rev =='C' )fdt_fixup_i2c_thermal_node (blob);
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 154/169 Correct SPL uses of TEN64_CONTROLLER
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_TEN64_CONTROLLER defined in Kconfig
---
(no changes since v1)
board/traverse/ten64/ten64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
board/traverse/ten64/ten64.c +2 -2
@@ -97,7 +97,7 @@ int checkboard(void)printf ("Unknown boot source %d\n" , src);puts ("Controller: " ); -if (CONFIG_IS_ENABLED (TEN64_CONTROLLER )) { +if (IS_ENABLED (CONFIG_TEN64_CONTROLLER )) {/* Driver not compatible with alpha/beta board MCU firmware */ if (board_rev <=TEN64_BOARD_REV_C ) {if (ten64_read_board_info (&boardinfo)) {
@@ -375,7 +375,7 @@ static void ten64_board_retimer_ds110df410_init(void)/* Retimer power cycle not implemented on early board * revisions/controller firmwares */ -if (CONFIG_IS_ENABLED (TEN64_CONTROLLER ) && +if (IS_ENABLED (CONFIG_TEN64_CONTROLLER ) && board_rev >=TEN64_BOARD_REV_C ) { ret =board_cycle_retimer (&retim_dev);if (ret) {
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 161/169 Correct SPL uses of USB_KEYBOARD
In reply to Simon GlassThis converts 2 usages of this option to the non-SPL form, since there is no SPL_USB_KEYBOARD defined in Kconfig
---
(no changes since v1)
arch/x86/cpu/coreboot/coreboot.c | 2 +- arch/x86/cpu/efi/payload.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/cpu/coreboot/coreboot.c +1 -1
@@ -77,7 +77,7 @@ static void board_final_init(void)int last_stage_init (void ) {/* start usb so that usb keyboard can be used as input device */ -if (CONFIG_IS_ENABLED (USB_KEYBOARD )) +if (IS_ENABLED (CONFIG_USB_KEYBOARD ))usb_init ();board_final_init ();
arch/x86/cpu/efi/payload.c +1 -1
@@ -171,7 +171,7 @@ int reserve_arch(void)int last_stage_init (void ) {/* start usb so that usb keyboard can be used as input device */ -if (CONFIG_IS_ENABLED (USB_KEYBOARD )) +if (IS_ENABLED (CONFIG_USB_KEYBOARD ))usb_init ();return 0 ;
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
PATCH v2 165/169 Correct SPL use of VIDEO_BPP16
In reply to Simon GlassThis converts 1 usage of this option to the non-SPL form, since there is no SPL_VIDEO_BPP16 defined in Kconfig
---
(no changes since v1)
drivers/video/video-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/video-uclass.c +1 -1
@@ -196,7 +196,7 @@ u32 video_index_to_colour(struct video_priv *priv, unsigned int idx) {switch (priv->bpix) {case VIDEO_BPP16 : -if (CONFIG_IS_ENABLED (VIDEO_BPP16 )) { +if (IS_ENABLED (CONFIG_VIDEO_BPP16 )) {return ((colours[idx].r >>3 ) <<11 ) | ((colours[idx].g >>2 ) <<5 ) | ((colours[idx].b >>3 ) <<0 );
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog