[PATCH v2 5/9] net: phy: air_phy_lib: Factorize BuckPBus register

David Lechner dlechner at baylibre.com
Tue Apr 28 20:45:05 CEST 2026


On 4/28/26 8:17 AM, Julien Stephan wrote:
> In preparation of Airoha AN8801R PHY support, move the BuckPBus
> register accessors and definitions, present in air_en8811h driver,
> into the Airoha PHY shared code (air_phy_lib), so they will be usable
> by the new driver without duplicating them.
> Also, update air_en8811h driver to use the new function names.
> 
> Adapted from [1].
> 
> [1]: https://lore.kernel.org/all/20260326-add-airoha-an8801-support-v2-2-1a42d6b6050f@collabora.com/
> 
> Signed-off-by: Julien Stephan <jstephan at baylibre.com>
> ---
>  MAINTAINERS                          |   2 +-
>  drivers/net/phy/airoha/Kconfig       |   6 +
>  drivers/net/phy/airoha/Makefile      |   1 +
>  drivers/net/phy/airoha/air_en8811.c  | 304 ++++++++---------------------------
>  drivers/net/phy/airoha/air_phy_lib.c | 216 +++++++++++++++++++++++++
>  drivers/net/phy/airoha/air_phy_lib.h |  39 +++++
>  6 files changed, 329 insertions(+), 239 deletions(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 40ba3542ca3..4bda6b9e8c4 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -61,7 +61,7 @@ F:	lib/acpi/
>  AIROHA PHY
>  M:	Tommy Shih <tommy.shih at airoha.com>
>  S:	Maintained
> -F:	drivers/net/phy/airoha/air_en8811.c
> +F:	drivers/net/phy/airoha/
>  
>  ALIST
>  M:	Simon Glass <sjg at chromium.org>
> diff --git a/drivers/net/phy/airoha/Kconfig b/drivers/net/phy/airoha/Kconfig
> index da8747939e3..2a2f4f05bb2 100644
> --- a/drivers/net/phy/airoha/Kconfig
> +++ b/drivers/net/phy/airoha/Kconfig
> @@ -7,6 +7,12 @@ config PHY_AIROHA_EN8811
>  	depends on PHY_AIROHA
>  	depends on SUPPORTS_FW_LOADER
>  	select FW_LOADER
> +	select PHY_AIRONA_PHYLIB
>  	help
>  	  AIROHA EN8811H supported.
>  	  AIROHA AN8811HB supported.
> +
> +config PHY_AIRONA_PHYLIB

Spelling: s/AIRONA/AIROHA/

> +	tristate
> +	help
> +	  Airoha Ethernet PHY common library


More information about the U-Boot mailing list