public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Beiyan Yun <root@infi.wang>
To: u-boot@lists.denx.de
Cc: Tom Rini <trini@konsulko.com>, Yao Zi <ziyao@disroot.org>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Beiyan Yun <root@infi.wang>,
	Jerome Forissier <jerome.forissier@linaro.org>,
	Joe Hershberger <joe.hershberger@ni.com>,
	"Lucien.Jheng" <lucienzx159@gmail.com>,
	Ramon Fried <rfried.dev@gmail.com>,
	Romain Gantois <romain.gantois@bootlin.com>,
	Siddharth Vadapalli <s-vadapalli@ti.com>,
	Sky Huang <SkyLake.Huang@mediatek.com>,
	Weijie Gao <weijie.gao@mediatek.com>
Subject: [PATCH v5 0/2] net: phy: aquantia: Switch to generic firmware loader
Date: Sat,  1 Nov 2025 20:31:33 +0800	[thread overview]
Message-ID: <20251101123401.110681-1-root@infi.wang> (raw)


Hi,

This patch series refactors the Aquantia PHY firmware loader to use
the generic fwloader framework.

The existing loader is limited to loading firmware from an MMC device,
which restricts its use on many devices (e.g., routers) that may use
other storage like USB or have a UBIFS root filesystem. Migrating to the
generic firmware loader allows firmware to be sourced from any backend
supported by the fwloader scripting framework.

The series is structured as follows:
- The first patch prepares current loading code for fwloader.
- The second and main patch replaces the custom loader with generic one.

This change has been tested on a Buffalo WXR18000BE10P router, loading
firmware from a UBIFS volume for Marvell CUX3410.

Changes in v5:
- Remove fsloader codepath
- Drop binding changes
- Make script name static
- Minor refactor

Changes in v4:
- Split firmware upload helpers change
- Reorder `aquantia_read_fw`
- Make `aquantia_read_fw` weak to allow overide
- Rename exit label in `aquantia_read_fw`
- Kconfig polish

Changes in v3:
- Select FW_LOADER with PHY_AQUANTIA_UPLOAD_FW

Changes in v2:
- Add support for script based loader

Beiyan Yun (2):
  net: phy: aquantia: refactor firmware upload helpers
  net: phy: aquantia: use generic firmware loader

 drivers/net/phy/Kconfig    |  23 ++++-----
 drivers/net/phy/aquantia.c | 103 +++++++++++++++++--------------------
 2 files changed, 59 insertions(+), 67 deletions(-)

-- 
2.47.3

base-commit: 62b45e82bdbf703571450e97f605893fe0d50530
branch: aquantia-fsloader-v5

             reply	other threads:[~2025-11-01 12:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-01 12:31 Beiyan Yun [this message]
2025-11-01 12:31 ` [PATCH v5 1/2] net: phy: aquantia: refactor firmware upload helpers Beiyan Yun
2025-11-01 12:31 ` [PATCH v5 2/2] net: phy: aquantia: use generic firmware loader Beiyan Yun
2025-11-15  7:48 ` [PATCH v5 0/2] net: phy: aquantia: Switch to " Beiyan Yun
2025-11-26 14:22   ` Jerome Forissier
2025-11-26 14:24     ` Marek Vasut
2025-11-26 14:28       ` Jerome Forissier
2025-11-29  3:10       ` Beiyan Yun
2025-11-29  3:47         ` Marek Vasut

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=20251101123401.110681-1-root@infi.wang \
    --to=root@infi.wang \
    --cc=SkyLake.Huang@mediatek.com \
    --cc=jerome.forissier@linaro.org \
    --cc=joe.hershberger@ni.com \
    --cc=lucienzx159@gmail.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=rfried.dev@gmail.com \
    --cc=romain.gantois@bootlin.com \
    --cc=s-vadapalli@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=weijie.gao@mediatek.com \
    --cc=ziyao@disroot.org \
    /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