U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Anurag Dutta <a-dutta@ti.com>
Cc: n-francis@ti.com, s-vadapalli@ti.com, vaishnav.a@ti.com,
	a-limaye@ti.com, u-boot@lists.denx.de, u-kumar1@ti.com
Subject: Re: [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO
Date: Mon, 24 Mar 2025 11:24:36 -0600	[thread overview]
Message-ID: <20250324172436.GC93000@bill-the-cat> (raw)
In-Reply-To: <20250320063004.1069653-2-a-dutta@ti.com>

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

On Thu, Mar 20, 2025 at 12:00:02PM +0530, Anurag Dutta wrote:
> Add Kconfig options for MUX_MMIO so that it can be enabled
> in SPL stage.
> 
> Signed-off-by: Anurag Dutta <a-dutta@ti.com>
> ---
>  drivers/mux/Kconfig | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
> index f15ee4f833f..2b95eb02177 100644
> --- a/drivers/mux/Kconfig
> +++ b/drivers/mux/Kconfig
> @@ -10,6 +10,16 @@ config MULTIPLEXER
>  
>  if MULTIPLEXER
>  
> +config SPL_MUX_MMIO
> +	bool "MMIO register bitfield-controlled Multiplexer"
> +        depends on MULTIPLEXER && SYSCON
> +        help
> +          MMIO register bitfield-controlled Multiplexer controller.
> +
> +          The driver builds multiplexer controllers for bitfields in a syscon
> +          register. For N bit wide bitfields, there will be 2^N possible
> +          multiplexer states.
> +
>  config MUX_MMIO
>  	bool "MMIO register bitfield-controlled Multiplexer"
>  	depends on MULTIPLEXER && SYSCON

First, "config SPL_FOO" should follow "config FOO". Second, "config
MUX_MMIO" is written wrong because doing:

if MULTIPLEXER

config MUX_MMIO
	bool "..."
	depends on MULTIPLEXER

endif

Is redundant. Lets fix that and then not repeat it when adding
SPL_MUX_MMIO.

Next, it should be "default y if MUX_MMIO" _unless_ it's really not
going to be needed in most cases, and then yes, what you did is right.

Finally, SPL_MUX_MMIO should depend on SPL_SYSCON as that symbol does
exist.

Thanks.

-- 
Tom

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

  parent reply	other threads:[~2025-03-24 17:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-20  6:30 [PATCH 0/3] Enable MUX_MMIO at SPL stage Anurag Dutta
2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
2025-03-20  6:45   ` Neha Malcom Francis
2025-03-20  6:50   ` Neha Malcom Francis
2025-03-24 17:24   ` Tom Rini [this message]
2025-03-20  6:30 ` [PATCH 2/3] configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL Anurag Dutta
2025-03-20  6:30 ` [PATCH 3/3] configs: j721e_evm_a72_defconfig: " Anurag Dutta
2025-04-06 15:38 ` [PATCH 0/3] Enable MUX_MMIO at SPL stage Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250324172436.GC93000@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=a-dutta@ti.com \
    --cc=a-limaye@ti.com \
    --cc=n-francis@ti.com \
    --cc=s-vadapalli@ti.com \
    --cc=u-boot@lists.denx.de \
    --cc=u-kumar1@ti.com \
    --cc=vaishnav.a@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox