From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chunfeng Yun Date: Thu, 30 Apr 2020 09:42:10 +0800 Subject: [PATCH v7 03/14] phy: Add API for a bulk of phys In-Reply-To: References: <1588140330-9910-1-git-send-email-chunfeng.yun@mediatek.com> <1588140330-9910-4-git-send-email-chunfeng.yun@mediatek.com> Message-ID: <1588210930.8249.22.camel@mhfsdcap03> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 2020-04-29 at 15:03 -0600, Simon Glass wrote: > Hi, > > On Wed, 29 Apr 2020 at 00:07, Chunfeng Yun 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 > > Reviewed-by: Weijie Gao > > --- > > 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