From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chunfeng Yun Date: Wed, 6 May 2020 10:53:23 +0800 Subject: [PATCH v7 10/14] xhci: mediatek: Add support for MTK xHCI host controller In-Reply-To: References: <1588140330-9910-1-git-send-email-chunfeng.yun@mediatek.com> <1588140330-9910-11-git-send-email-chunfeng.yun@mediatek.com> Message-ID: <1588733603.11298.10.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 Fri, 2020-05-01 at 23:00 +0530, Jagan Teki wrote: > On Wed, Apr 29, 2020 at 11:46 AM Chunfeng Yun wrote: > > > > This patch is used to support the on-chip xHCI controller on > > MediaTek SoCs, currently control/bulk/interrupt transfers are > > supported. > > > > Signed-off-by: Chunfeng Yun > > Reviewed-by: Weijie Gao ... > > +int xhci_mtk_phy_setup(struct mtk_xhci *mtk) > > +{ > > + struct udevice *dev = mtk->dev; > > + struct phy_bulk *phys = &mtk->phys; > > + int ret; > > + > > + ret = generic_phy_get_bulk(dev, phys); > > + if (ret) > > + return ret; > > + > > + ret = generic_phy_init_bulk(phys); > > + if (ret) > > + return ret; > > + > > + ret = generic_phy_power_on_bulk(phys); > > + if (ret) > > + generic_phy_exit_bulk(phys); > > + > > + return ret; > > +} > > + > > +void xhci_mtk_phy_shutdown(struct mtk_xhci *mtk) > > +{ > > + generic_phy_power_off_bulk(&mtk->phys); > > + generic_phy_exit_bulk(&mtk->phys); > > +} > > Hope these are local functions, if yes mark it as static. Ok, thanks > > otherwise, > > Reviewed-by: Jagan Teki