All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Kconfig: hide options not intended for users in arch/Kconfig
@ 2022-05-17 20:53 Daniel Schwierzeck
  2022-05-18 12:18 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Schwierzeck @ 2022-05-17 20:53 UTC (permalink / raw)
  To: u-boot; +Cc: Tom Rini, Daniel Schwierzeck, Masahiro Yamada

Those options show up in menuconfig when selecting ARM or MIPS which
is dangerous if a user accidently sets them. This also clutters up the
menuconfig top-level screen. Because those options should only be set
by SoC specific or board specific configs, make them invisible.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

---

 arch/Kconfig | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index 12de8a1165..e3e28d0628 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -365,7 +365,7 @@ config SYS_DISABLE_DCACHE_OPS
 	 this functionality.
 
 config SYS_IMMR
-	hex "Address for the Internal Memory-Mapped Registers (IMMR) window"
+	hex
 	depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
 	default 0xFF000000 if MPC8xx
 	default 0xF0000000 if ARCH_MPC8313
@@ -377,7 +377,7 @@ config SYS_IMMR
 	  to configure the features of many Freescale / NXP SoCs.
 
 config SKIP_LOWLEVEL_INIT
-	bool "Skip the calls to certain low level initialization functions"
+	bool
 	depends on ARM || MIPS || RISCV
 	help
 	  If enabled, then certain low level initializations (like setting up
@@ -388,7 +388,7 @@ config SKIP_LOWLEVEL_INIT
 	  debugger which performs these initializations itself.
 
 config SPL_SKIP_LOWLEVEL_INIT
-	bool "Skip the calls to certain low level initialization functions"
+	bool
 	depends on SPL && (ARM || MIPS || RISCV)
 	help
 	  If enabled, then certain low level initializations (like setting up
@@ -399,7 +399,7 @@ config SPL_SKIP_LOWLEVEL_INIT
 	  debugger which performs these initializations itself.
 
 config TPL_SKIP_LOWLEVEL_INIT
-	bool "Skip the calls to certain low level initialization functions"
+	bool
 	depends on SPL && ARM
 	help
 	  If enabled, then certain low level initializations (like setting up
@@ -410,7 +410,7 @@ config TPL_SKIP_LOWLEVEL_INIT
 	  debugger which performs these initializations itself.
 
 config SKIP_LOWLEVEL_INIT_ONLY
-	bool "Skip the call to lowlevel_init during early boot ONLY"
+	bool
 	depends on ARM
 	help
 	  This allows just the call to lowlevel_init() to be skipped. The
@@ -418,7 +418,7 @@ config SKIP_LOWLEVEL_INIT_ONLY
 	  performed.
 
 config SPL_SKIP_LOWLEVEL_INIT_ONLY
-	bool "Skip the call to lowlevel_init during early boot ONLY"
+	bool
 	depends on SPL && ARM
 	help
 	  This allows just the call to lowlevel_init() to be skipped. The
@@ -426,7 +426,7 @@ config SPL_SKIP_LOWLEVEL_INIT_ONLY
 	  performed.
 
 config TPL_SKIP_LOWLEVEL_INIT_ONLY
-	bool "Skip the call to lowlevel_init during early boot ONLY"
+	bool
 	depends on TPL && ARM
 	help
 	  This allows just the call to lowlevel_init() to be skipped. The
-- 
2.36.1


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

* Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig
  2022-05-17 20:53 [PATCH] Kconfig: hide options not intended for users in arch/Kconfig Daniel Schwierzeck
@ 2022-05-18 12:18 ` Tom Rini
  2022-05-18 15:12   ` Daniel Schwierzeck
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2022-05-18 12:18 UTC (permalink / raw)
  To: Daniel Schwierzeck; +Cc: u-boot, Masahiro Yamada

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote:
> Those options show up in menuconfig when selecting ARM or MIPS which
> is dangerous if a user accidently sets them. This also clutters up the
> menuconfig top-level screen. Because those options should only be set
> by SoC specific or board specific configs, make them invisible.
> 
> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> 
> ---
> 
>  arch/Kconfig | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/Kconfig b/arch/Kconfig
> index 12de8a1165..e3e28d0628 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -365,7 +365,7 @@ config SYS_DISABLE_DCACHE_OPS
>  	 this functionality.
>  
>  config SYS_IMMR
> -	hex "Address for the Internal Memory-Mapped Registers (IMMR) window"
> +	hex
>  	depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
>  	default 0xFF000000 if MPC8xx
>  	default 0xF0000000 if ARCH_MPC8313

But now these aren't user selectable on the right platforms either.
Maybe we need more menu organization, and so can have sub-menus depend
on PPC, or whatever, and so things aren't cluttered on other
architectures?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig
  2022-05-18 12:18 ` Tom Rini
@ 2022-05-18 15:12   ` Daniel Schwierzeck
  2022-05-18 15:22     ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Schwierzeck @ 2022-05-18 15:12 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Masahiro Yamada



On 18.05.22 14:18, Tom Rini wrote:
> On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote:
>> Those options show up in menuconfig when selecting ARM or MIPS which
>> is dangerous if a user accidently sets them. This also clutters up the
>> menuconfig top-level screen. Because those options should only be set
>> by SoC specific or board specific configs, make them invisible.
>>
>> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
>>
>> ---
>>
>>   arch/Kconfig | 14 +++++++-------
>>   1 file changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/arch/Kconfig b/arch/Kconfig
>> index 12de8a1165..e3e28d0628 100644
>> --- a/arch/Kconfig
>> +++ b/arch/Kconfig
>> @@ -365,7 +365,7 @@ config SYS_DISABLE_DCACHE_OPS
>>   	 this functionality.
>>   
>>   config SYS_IMMR
>> -	hex "Address for the Internal Memory-Mapped Registers (IMMR) window"
>> +	hex
>>   	depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
>>   	default 0xFF000000 if MPC8xx
>>   	default 0xF0000000 if ARCH_MPC8313
> 
> But now these aren't user selectable on the right platforms either.
> Maybe we need more menu organization, and so can have sub-menus depend
> on PPC, or whatever, and so things aren't cluttered on other
> architectures?
> 

my main concern was with SKIP_LOWLEVEL_INIT which definitely should not 
be selectable by the user. Maybe I was to overambitious with changing 
the SYS_IMMR option too, I could revert that part ;)

BTW: SYS_IMMR seems to be specific for PPC. Maybe it could be moved to 
arch/powerpc/Kconfig?

-- 
- Daniel

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

* Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig
  2022-05-18 15:12   ` Daniel Schwierzeck
@ 2022-05-18 15:22     ` Tom Rini
  2022-05-18 15:52       ` Daniel Schwierzeck
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2022-05-18 15:22 UTC (permalink / raw)
  To: Daniel Schwierzeck; +Cc: u-boot, Priyanka Jain

[-- Attachment #1: Type: text/plain, Size: 2096 bytes --]

On Wed, May 18, 2022 at 05:12:13PM +0200, Daniel Schwierzeck wrote:
> 
> 
> On 18.05.22 14:18, Tom Rini wrote:
> > On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote:
> > > Those options show up in menuconfig when selecting ARM or MIPS which
> > > is dangerous if a user accidently sets them. This also clutters up the
> > > menuconfig top-level screen. Because those options should only be set
> > > by SoC specific or board specific configs, make them invisible.
> > > 
> > > Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> > > 
> > > ---
> > > 
> > >   arch/Kconfig | 14 +++++++-------
> > >   1 file changed, 7 insertions(+), 7 deletions(-)
> > > 
> > > diff --git a/arch/Kconfig b/arch/Kconfig
> > > index 12de8a1165..e3e28d0628 100644
> > > --- a/arch/Kconfig
> > > +++ b/arch/Kconfig
> > > @@ -365,7 +365,7 @@ config SYS_DISABLE_DCACHE_OPS
> > >   	 this functionality.
> > >   config SYS_IMMR
> > > -	hex "Address for the Internal Memory-Mapped Registers (IMMR) window"
> > > +	hex
> > >   	depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
> > >   	default 0xFF000000 if MPC8xx
> > >   	default 0xF0000000 if ARCH_MPC8313
> > 
> > But now these aren't user selectable on the right platforms either.
> > Maybe we need more menu organization, and so can have sub-menus depend
> > on PPC, or whatever, and so things aren't cluttered on other
> > architectures?
> > 
> 
> my main concern was with SKIP_LOWLEVEL_INIT which definitely should not be
> selectable by the user. Maybe I was to overambitious with changing the
> SYS_IMMR option too, I could revert that part ;)

I'd be agreeable to a patch that makes everyone that enables it today
select it instead.

> BTW: SYS_IMMR seems to be specific for PPC. Maybe it could be moved to
> arch/powerpc/Kconfig?

It's PowerPC or the 64bit ARM Layerscape platforms.  There's I think
only several imperfect places today for the options that are present in
both due to the IP blocks / etc being updated by NXP for use in their
current ARM HW.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig
  2022-05-18 15:22     ` Tom Rini
@ 2022-05-18 15:52       ` Daniel Schwierzeck
  2022-05-18 15:57         ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Schwierzeck @ 2022-05-18 15:52 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Priyanka Jain



On 18.05.22 17:22, Tom Rini wrote:
> On Wed, May 18, 2022 at 05:12:13PM +0200, Daniel Schwierzeck wrote:
>>
>>
>> On 18.05.22 14:18, Tom Rini wrote:
>>> On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote:
>>>> Those options show up in menuconfig when selecting ARM or MIPS which
>>>> is dangerous if a user accidently sets them. This also clutters up the
>>>> menuconfig top-level screen. Because those options should only be set
>>>> by SoC specific or board specific configs, make them invisible.
>>>>
>>>> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
>>>>
>>>> ---
>>>>
>>>>    arch/Kconfig | 14 +++++++-------
>>>>    1 file changed, 7 insertions(+), 7 deletions(-)
>>>>
>>>> diff --git a/arch/Kconfig b/arch/Kconfig
>>>> index 12de8a1165..e3e28d0628 100644
>>>> --- a/arch/Kconfig
>>>> +++ b/arch/Kconfig
>>>> @@ -365,7 +365,7 @@ config SYS_DISABLE_DCACHE_OPS
>>>>    	 this functionality.
>>>>    config SYS_IMMR
>>>> -	hex "Address for the Internal Memory-Mapped Registers (IMMR) window"
>>>> +	hex
>>>>    	depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
>>>>    	default 0xFF000000 if MPC8xx
>>>>    	default 0xF0000000 if ARCH_MPC8313
>>>
>>> But now these aren't user selectable on the right platforms either.
>>> Maybe we need more menu organization, and so can have sub-menus depend
>>> on PPC, or whatever, and so things aren't cluttered on other
>>> architectures?
>>>
>>
>> my main concern was with SKIP_LOWLEVEL_INIT which definitely should not be
>> selectable by the user. Maybe I was to overambitious with changing the
>> SYS_IMMR option too, I could revert that part ;)
> 
> I'd be agreeable to a patch that makes everyone that enables it today
> select it instead.

I'll look into it. Would moving this to top-level Kconfig and the 
"General setup" menu be an option?

> 
>> BTW: SYS_IMMR seems to be specific for PPC. Maybe it could be moved to
>> arch/powerpc/Kconfig?
> 
> It's PowerPC or the 64bit ARM Layerscape platforms.  There's I think
> only several imperfect places today for the options that are present in
> both due to the IP blocks / etc being updated by NXP for use in their
> current ARM HW.
> 

-- 
- Daniel

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

* Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig
  2022-05-18 15:52       ` Daniel Schwierzeck
@ 2022-05-18 15:57         ` Tom Rini
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2022-05-18 15:57 UTC (permalink / raw)
  To: Daniel Schwierzeck; +Cc: u-boot, Priyanka Jain

[-- Attachment #1: Type: text/plain, Size: 2282 bytes --]

On Wed, May 18, 2022 at 05:52:36PM +0200, Daniel Schwierzeck wrote:
> 
> 
> On 18.05.22 17:22, Tom Rini wrote:
> > On Wed, May 18, 2022 at 05:12:13PM +0200, Daniel Schwierzeck wrote:
> > > 
> > > 
> > > On 18.05.22 14:18, Tom Rini wrote:
> > > > On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote:
> > > > > Those options show up in menuconfig when selecting ARM or MIPS which
> > > > > is dangerous if a user accidently sets them. This also clutters up the
> > > > > menuconfig top-level screen. Because those options should only be set
> > > > > by SoC specific or board specific configs, make them invisible.
> > > > > 
> > > > > Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> > > > > 
> > > > > ---
> > > > > 
> > > > >    arch/Kconfig | 14 +++++++-------
> > > > >    1 file changed, 7 insertions(+), 7 deletions(-)
> > > > > 
> > > > > diff --git a/arch/Kconfig b/arch/Kconfig
> > > > > index 12de8a1165..e3e28d0628 100644
> > > > > --- a/arch/Kconfig
> > > > > +++ b/arch/Kconfig
> > > > > @@ -365,7 +365,7 @@ config SYS_DISABLE_DCACHE_OPS
> > > > >    	 this functionality.
> > > > >    config SYS_IMMR
> > > > > -	hex "Address for the Internal Memory-Mapped Registers (IMMR) window"
> > > > > +	hex
> > > > >    	depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
> > > > >    	default 0xFF000000 if MPC8xx
> > > > >    	default 0xF0000000 if ARCH_MPC8313
> > > > 
> > > > But now these aren't user selectable on the right platforms either.
> > > > Maybe we need more menu organization, and so can have sub-menus depend
> > > > on PPC, or whatever, and so things aren't cluttered on other
> > > > architectures?
> > > > 
> > > 
> > > my main concern was with SKIP_LOWLEVEL_INIT which definitely should not be
> > > selectable by the user. Maybe I was to overambitious with changing the
> > > SYS_IMMR option too, I could revert that part ;)
> > 
> > I'd be agreeable to a patch that makes everyone that enables it today
> > select it instead.
> 
> I'll look into it. Would moving this to top-level Kconfig and the "General
> setup" menu be an option?

Sure.  Note that it's only used on ARM and some MIPS platforms today, so
we could also tighten the dependncy line.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2022-05-18 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17 20:53 [PATCH] Kconfig: hide options not intended for users in arch/Kconfig Daniel Schwierzeck
2022-05-18 12:18 ` Tom Rini
2022-05-18 15:12   ` Daniel Schwierzeck
2022-05-18 15:22     ` Tom Rini
2022-05-18 15:52       ` Daniel Schwierzeck
2022-05-18 15:57         ` 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.