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

Quentin Schulz quentin.schulz at cherry.de
Thu May 7 12:19:51 CEST 2026


Hi Julien,

On 4/29/26 3:58 PM, 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 105590ffad0..735ecc36210 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..5b109d5c6b4 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_AIROHA_PHYLIB
>   	help
>   	  AIROHA EN8811H supported.
>   	  AIROHA AN8811HB supported.
> +
> +config PHY_AIROHA_PHYLIB
> +	tristate

tristate is invalid in U-Boot, use bool instead.

Cheers,
Quentin


More information about the U-Boot mailing list