[PATCH v7 03/14] phy: Add API for a bulk of phys

Simon Glass sjg at chromium.org
Wed Apr 29 23:03:32 CEST 2020


Hi,

On Wed, 29 Apr 2020 at 00:07, Chunfeng Yun <chunfeng.yun at mediatek.com> wrote:
>
> This patch adds a "bulk" API to the phy API in order to
> get/init/exit/power on/off a group of phys associated
> with a device.
>
> The bulk API will avoid adding a copy of the same code to
> manage a group of phys in drivers.
>
> Signed-off-by: Chunfeng Yun <chunfeng.yun at mediatek.com>
> Reviewed-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
> v7: provide bulk init/exit/power on/off separately suggested by Jagan
>
> v6: add Reviewed-by Weijie
>
> v5: no changes
>
> v4: new patch
> ---
>  drivers/phy/phy-uclass.c | 97 ++++++++++++++++++++++++++++++++++++++++
>  include/generic-phy.h    | 92 +++++++++++++++++++++++++++++++++++++
>  2 files changed, 189 insertions(+)

Please don't forget to add a test for this.

Is this used by networking?

Regards,
Simon


More information about the U-Boot mailing list