From: Tom Rini Date: Thu, 10 Sep 2020 09:30:21 -0400 Subject: [PATCH v2 7/9] usb: dwc3: Make PHY functions depend on CONFIG_USB_DWC3 In-Reply-To: <20200901172302.551467-8-robert.marko@sartura.hr> References: <20200901172302.551467-1-robert.marko@sartura.hr> <20200901172302.551467-8-robert.marko@sartura.hr> Message-ID: <20200910133021.GW7259@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Sep 01, 2020 at 07:23:00PM +0200, Robert Marko wrote: > PHY handling functions should depend also on CONFIG_USB_DWC3 aka DM DWC3 version. > Otherwise when using the non DM version with PHY subsystem enabled there will be a linking error due to missing dwc3_setup_phy and dwc3_shutdown_phy. > > Signed-off-by: Robert Marko > Cc: Luka Perkov > --- > include/dwc3-uboot.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h > index e08530ec4e..5eb0822d74 100644 > --- a/include/dwc3-uboot.h > +++ b/include/dwc3-uboot.h > @@ -47,7 +47,7 @@ void dwc3_uboot_exit(int index); > void dwc3_uboot_handle_interrupt(int index); > > struct phy; > -#if CONFIG_IS_ENABLED(PHY) && CONFIG_IS_ENABLED(DM_USB) > +#if CONFIG_IS_ENABLED(PHY) && CONFIG_IS_ENABLED(DM_USB) && CONFIG_IS_ENABLED(CONFIG_USB_DWC3) > int dwc3_setup_phy(struct udevice *dev, struct phy_bulk *phys); > int dwc3_shutdown_phy(struct udevice *dev, struct phy_bulk *phys); > #else This should be CONFIG_IS_ENABLED(USB_DWC3). -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: