public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: David Lechner <dlechner@baylibre.com>
Cc: Weijie Gao <weijie.gao@mediatek.com>,
	GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH] arm: mediatek: enable fw loader support
Date: Wed, 15 Apr 2026 14:56:24 -0600	[thread overview]
Message-ID: <20260415205624.GP41863@bill-the-cat> (raw)
In-Reply-To: <0d7ba570-335e-4de7-b272-7152b540def2@baylibre.com>

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

On Wed, Apr 15, 2026 at 02:27:39PM -0500, David Lechner wrote:
> On 4/15/26 10:02 AM, David Lechner wrote:
> > On 4/9/26 8:53 PM, Weijie Gao wrote:
> >> Enable SUPPORTS_FW_LOADER to allow the mediatek platform to use ethernet PHY
> >> drivers with fw loading.
> >>
> >> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
> >> ---
> >>  arch/arm/Kconfig | 1 +
> >>  1 file changed, 1 insertion(+)
> >>
> >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> >> index 03416c55265..aee8e74dace 100644
> >> --- a/arch/arm/Kconfig
> >> +++ b/arch/arm/Kconfig
> >> @@ -868,6 +868,7 @@ config ARCH_MEDIATEK
> >>  	select SPL_LIBGENERIC_SUPPORT if SPL
> >>  	select SPL_OF_CONTROL if SPL
> >>  	select SUPPORT_SPL
> >> +	select SUPPORTS_FW_LOADER
> > 
> > I don't think this is how this config option is meant to be used.
> > 
> > Based on [1], it sounds like we just need to make sure CMDLINE and
> > ENV_SUPPORT are enabled in any config that also enables PHY_MEDIATEK_2P5GE.
> > 
> > I don't see any defconfig that enables PHY_MEDIATEK_2P5GE though, so
> > I'm not sure there is anything to do here. Unless it makes sense to
> > enable this in one of the existing defconfigs or add a new defconfig?
> > 
> > [1]: https://lore.kernel.org/u-boot/20260310162610.1163833-1-trini@konsulko.com/
> > 
> >>  	help
> >>  	  Support for the MediaTek SoCs family developed by MediaTek Inc.
> >>  	  Please refer to doc/README.mediatek for more information.
> > 
> 
> I thought about this some more and I wonder if we need to do something
> like this to make it actually work correctly though...
> 
> ---
> diff --git a/lib/Kconfig b/lib/Kconfig
> index 4e6a0c6a1b6..ed37daa28b8 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -73,6 +73,7 @@ config DYNAMIC_CRC_TABLE
>  
>  config SUPPORTS_FW_LOADER
>  	bool
> +	default y
>  	depends on CMDLINE
>  	depends on ENV_SUPPORT

That would be "def_bool y" in practice. And yes, that looks right, and
should have a Fixes.

-- 
Tom

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

      reply	other threads:[~2026-04-15 20:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-10  1:53 [PATCH] arm: mediatek: enable fw loader support Weijie Gao
2026-04-15 15:02 ` David Lechner
2026-04-15 19:27   ` David Lechner
2026-04-15 20:56     ` Tom Rini [this message]

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=20260415205624.GP41863@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=GSS_MTK_Uboot_upstream@mediatek.com \
    --cc=dlechner@baylibre.com \
    --cc=u-boot@lists.denx.de \
    --cc=weijie.gao@mediatek.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