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

Chunfeng Yun chunfeng.yun at mediatek.com
Thu Apr 30 03:42:10 CEST 2020


On Wed, 2020-04-29 at 15:03 -0600, Simon Glass wrote:
> 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.
Yes, already added in [PATCH v7 04/14]
> 
> Is this used by networking?
No, original phy-core seems also not support it

> 
> Regards,
> Simon



More information about the U-Boot mailing list