From: Jean-Jacques Hiblot Date: Thu, 27 Jun 2019 18:17:03 +0200 Subject: [U-Boot] [PATCH] usb: dwc3: Fix default dr_mode setting In-Reply-To: <7af15686-35f9-22ea-8df3-256ce856f275@denx.de> References: <20190627155344.4064-1-jjhiblot@ti.com> <7af15686-35f9-22ea-8df3-256ce856f275@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27/06/2019 18:12, Marek Vasut wrote: > On 6/27/19 5:53 PM, Jean-Jacques Hiblot wrote: >> The IS_ENABLED() macro requires the complete CONFIG option including the >> 'CONFIG_' prefix. > Use CONFIG_IS_ENABLED to make it work with SPL ? There is no SPL variant of this variable. JJ > >> Signed-off-by: Jean-Jacques Hiblot >> --- >> To be applied on top of usb/next >> >> drivers/usb/dwc3/core.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c >> index 9f7f053265..10b3f837f2 100644 >> --- a/drivers/usb/dwc3/core.c >> +++ b/drivers/usb/dwc3/core.c >> @@ -707,7 +707,7 @@ int dwc3_uboot_init(struct dwc3_device *dwc3_dev) >> return -ENOMEM; >> } >> >> - if (!IS_ENABLED(USB_DWC3_GADGET)) >> + if (!IS_ENABLED(CONFIG_USB_DWC3_GADGET)) >> dwc->dr_mode = USB_DR_MODE_HOST; >> else if (!IS_ENABLED(CONFIG_USB_HOST)) >> dwc->dr_mode = USB_DR_MODE_PERIPHERAL; >> >