From patchwork Thu Aug 24 16:30:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 110936 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp8726920ybm; Thu, 24 Aug 2017 09:30:49 -0700 (PDT) X-Received: by 10.80.167.130 with SMTP id i2mr6717098edc.101.1503592249532; Thu, 24 Aug 2017 09:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503592249; cv=none; d=google.com; s=arc-20160816; b=DXU06mDk6vKmj0LXqbYvOVcj0MyJYGXRYjjrl2aryA+BZ0NB6v/FIAQ7ehIPo18SAd EHBXOmcgmkCRStv2INE45GvbOHW5KU668DxWai3wkuc0G4Zs4esczV3oN/r2OHseXDJ4 u23WvXuzI0AEgI9ZqCBRRgV+kZnIJlDS0/MNYXnWIYmbnnvCaeRmqfAbaAP+vvDBhjW0 VE1RRBc3lKM05/I0A/8Ben48Z9aDydtJgJF57H5DVV2NhrQWuUyDnlEbm/ArDcJSSQj5 cxky9X+W6RkT/Zp+KkjEwLCkCYpt+SsbJI43mL3sTb5o/S9yFydHHBE9WJlEw/caPlOx +b/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=hWy2WOjedxAUlgVRbOm2e7OPRr3kzPwHSeazg3bIWEI=; b=yX+Kp9U4kwzzNS0ktyQs41D6bcq0S4aQ8yZ1Kev12kq4dygfl4lfgh8UHorIDotb2h pbVHhD3O2urD8XqOnWZiEUyFVH0f7FumrvhUh+bQ5gV/tDH38EzV8u9HqlL0Gwdl284o ouyEKNDHIPwXY+WeKk6LGJJHfohF4AlY7mxy5beb8WrHsNUSxnGz/iPHPf+mY4x5TN9p +opGZEMrpUwWAV/oPXegKpTpTeQd5bLsPEwonZYKRXlJXWUkytU29xIy/iSAJbus8l0V JOG3cameMbS3ub3bX+f82M5y91GeXu9m+4V0nsr6IyQPvO1LwEOgi9qPaikPXnk+fRj/ Hhzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=qQ3jdqAP; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id o8si4168951edj.143.2017.08.24.09.30.48; Thu, 24 Aug 2017 09:30:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=qQ3jdqAP; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 6DD64C21EA2; Thu, 24 Aug 2017 16:30:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CB3E6C21DB9; Thu, 24 Aug 2017 16:30:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C41D1C21DB9; Thu, 24 Aug 2017 16:30:43 +0000 (UTC) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by lists.denx.de (Postfix) with ESMTPS id 68228C21DA9 for ; Thu, 24 Aug 2017 16:30:42 +0000 (UTC) Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-07.nifty.com with ESMTP id v7OGUMwx008732; Fri, 25 Aug 2017 01:30:23 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v7OGUMwx008732 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1503592223; bh=ZXjXDydVO2P9sIcdF5R8a8bE4I6tEH0G5pPl7aaKjyQ=; h=From:To:Cc:Subject:Date:From; b=qQ3jdqAPZ8ECpYfg7Wu/1oZOa112uzklBOpMb5xErPX/E5899JL/331wEAZF9/liC GqBk4xELU37BoqvdRoeRnrhfTYPqYV9gIELBXyCfxFiZkcn2+sQXeA+mKoKWeA1WcB w2vXsDOYv2bpAwEMX27Nw9VDcMJGQlQtJke/0c6OPsSlOHhVEcfafYUuGwAPvui2oZ lPIQVwG3iFoTNelZtPG2cqPqqYOHRTMCw1Oa9VpOofPPTnT+4ztaD+Wwtzj5QoMqRc hXmv6l5C0xS3jDedK1OyMpVRM34gWJfDMuj0GvxRmx93/etJu9LEaVcNIALWmAMDA1 pLe+uZS75rSwg== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 25 Aug 2017 01:30:20 +0900 Message-Id: <1503592220-8960-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut Subject: [U-Boot] [PATCH] usb: dwc3: fix Kconfig dependency to accept host driver in drivers/usb/dwc3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We see the choice of USB_DWC3_HOST / _GADGET in drivers/usb/dwc3/Kconfig, but we can not choose USB_DWC3_HOST unless USB_GADGET is defined. This is strange. Loosen the "depends on" and also move "select USB_GADGET_DUALSPEED" to the correct place. Signed-off-by: Masahiro Yamada --- drivers/usb/dwc3/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index e93398fe7c1c..7f2f400c09ce 100644 --- a/drivers/usb/dwc3/Kconfig +++ b/drivers/usb/dwc3/Kconfig @@ -1,7 +1,6 @@ config USB_DWC3 bool "DesignWare USB3 DRD Core Support" - depends on (USB && USB_GADGET) - select USB_GADGET_DUALSPEED + depends on (USB_HOST || USB_GADGET) help Say Y here if your system has a Dual Role SuperSpeed USB controller based on the DesignWare USB3 IP Core. @@ -21,6 +20,7 @@ config USB_DWC3_HOST config USB_DWC3_GADGET bool "Gadget only mode" depends on USB_GADGET + select USB_GADGET_DUALSPEED help Select this when you want to use DWC3 in gadget mode only, thereby the host feature will be regressed.