From: Daniel Golle <daniel@makrotopia.org>
To: Tommy Shih <tommy.shih@airoha.com>
Cc: Christian Marangi <ansuelsmth@gmail.com>,
Jerome Forissier <jerome.forissier@arm.com>,
Joe Hershberger <joe.hershberger@ni.com>,
"Lucien . Jheng" <lucienzx159@gmail.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>,
frank-w@public-files.de, u-boot@lists.denx.de,
Lucien Jheng <lucien.jheng@airoha.com>
Subject: Re: [PATCH v1] net: phy: air_en8811: add support for Airoha AN8811HB PHY
Date: Tue, 24 Feb 2026 12:00:57 +0000 [thread overview]
Message-ID: <aZ2S-UhkJogfU0ug@makrotopia.org> (raw)
In-Reply-To: <20260224110403.418941-1-tommy.shih@airoha.com>
On Tue, Feb 24, 2026 at 07:02:50PM +0800, Tommy Shih wrote:
> Add support for the Airoha AN8811HB 2.5 Gigabit PHY to the existing
> en8811h driver. This PHY supports 10/100/1000/2500 Mbps speeds.
>
> Update the driver to recognize the AN8811HB PHY ID and handle its
> specific firmware loading requirements. The firmware loading mechanism
> remains consistent with the existing implementation.
>
> This driver is based on:
> - Linux upstream PHY subsystem (v7.0-rc1)
> - air_an8811hb v0.0.4 out-of-tree uboot driver written by
> "Lucien.Jheng <lucien.jheng@airoha.com>"
>
> Tested on MT7987 RFB board.
>
> Link: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6f1769ec5892ac41d82e820d94dcdc68e904aa99
> Link: https://patchwork.kernel.org/project/netdevbpf/patch/20260122071601.1057083-3-bjorn@mork.no/
> Signed-off-by: Tommy Shih <tommy.shih@airoha.com>
> Reviewed-by: Lucien.Jheng <lucienzx159@gmail.com>
>
> ---
>
> drivers/net/phy/airoha/Kconfig | 2 +-
> drivers/net/phy/airoha/air_en8811.c | 695 ++++++++++++++++++++++++++--
> 2 files changed, 652 insertions(+), 45 deletions(-)
>
> diff --git a/drivers/net/phy/airoha/Kconfig b/drivers/net/phy/airoha/Kconfig
> index 999564e4848..fcace9a24ac 100644
> --- a/drivers/net/phy/airoha/Kconfig
> +++ b/drivers/net/phy/airoha/Kconfig
> @@ -8,4 +8,4 @@ config PHY_AIROHA_EN8811
> select FW_LOADER
> help
> AIROHA EN8811H supported.
> -
> + AIROHA AN8811HB supported.
> diff --git a/drivers/net/phy/airoha/air_en8811.c b/drivers/net/phy/airoha/air_en8811.c
> index 1a628ede82b..974887da33d 100644
> --- a/drivers/net/phy/airoha/air_en8811.c
> +++ b/drivers/net/phy/airoha/air_en8811.c
> @@ -1,46 +1,37 @@
> // SPDX-License-Identifier: GPL-2.0+
> /*
> - * Driver for the Airoha EN8811H 2.5 Gigabit PHY.
> + * Driver for the Airoha EN8811H and AN8811HB 2.5 Gigabit PHY.
> *
> - * Limitations of the EN8811H:
> + * Limitations:
> * - Only full duplex supported
> * - Forced speed (AN off) is not supported by hardware (100Mbps)
> *
> * Source originated from linux air_en8811h.c
> *
> - * Copyright (C) 2025 Airoha Technology Corp.
> + * Copyright (C) 2025, 2026 Airoha Technology Corp.
> */
> -
> #include <phy.h>
> #include <errno.h>
> #include <log.h>
> #include <env.h>
> #include <malloc.h>
> +#include <fs.h>
I don't see where you are using anything provided by the fs.h header.
> #include <fw_loader.h>
> #include <asm/unaligned.h>
> +#include <version.h>
> +#include <linux/delay.h>
> #include <linux/iopoll.h>
> #include <linux/bitops.h>
> +#include <linux/bitfield.h>
> #include <linux/compat.h>
> +#include <linux/kernel.h>
... and for sure you don't need that one.
> #include <dm/device_compat.h>
> #include <u-boot/crc.h>
Please carefully check which additional headers are actually needed.
next prev parent reply other threads:[~2026-02-24 12:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-24 11:02 [PATCH v1] net: phy: air_en8811: add support for Airoha AN8811HB PHY Tommy Shih
2026-02-24 12:00 ` Daniel Golle [this message]
2026-02-25 3:07 ` Tommy Shih (施易廷)
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=aZ2S-UhkJogfU0ug@makrotopia.org \
--to=daniel@makrotopia.org \
--cc=ansuelsmth@gmail.com \
--cc=frank-w@public-files.de \
--cc=jerome.forissier@arm.com \
--cc=joe.hershberger@ni.com \
--cc=lucien.jheng@airoha.com \
--cc=lucienzx159@gmail.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=rfried.dev@gmail.com \
--cc=tommy.shih@airoha.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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