From patchwork Wed Feb 11 13:01:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 438770 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id F3B7114028E for ; Thu, 12 Feb 2015 00:00:48 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 38E3D284986; Wed, 11 Feb 2015 13:57:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 7285828A842 for ; Wed, 11 Feb 2015 13:57:26 +0100 (CET) X-policyd-weight: using cached result; rate:hard: -7.6 Received: from fudo.makrotopia.org (fudo.makrotopia.org [5.135.190.93]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 11 Feb 2015 13:57:26 +0100 (CET) Received: from local by fudo.makrotopia.org with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1YLWtf-0001Yk-6c; Wed, 11 Feb 2015 14:00:03 +0100 Date: Wed, 11 Feb 2015 14:01:11 +0100 From: Daniel Golle To: openwrt-devel@lists.openwrt.org Message-ID: <20150211125953.GA1180@makrotopia.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [OpenWrt-Devel] [PATCH] oxnas: workaround dwc2 role selection breakage X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" kmod-usb-dwc2 currently breaks CONFIG_ALL builds. Fix that by adding a rather random selection of DWC2-related Kconfig stuff to config-3.18 (oxnas doesn't have a dwc2, the whole drama comes up because we package the dwc2-pci reference driver though that hardware supposedly doesn't exist anywhere outside the vendor's labs). These options could as well be added to generic/config-3.18 leaving it to target maintainers to enable DUAL_ROLE mode if actually supported. Signed-off-by: Daniel Golle --- target/linux/oxnas/config-3.18 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/linux/oxnas/config-3.18 b/target/linux/oxnas/config-3.18 index 77585af..a1018a5 100644 --- a/target/linux/oxnas/config-3.18 +++ b/target/linux/oxnas/config-3.18 @@ -341,7 +341,11 @@ CONFIG_UID16=y CONFIG_UNCOMPRESS_INCLUDE="mach/uncompress.h" CONFIG_USB=y CONFIG_USB_COMMON=y +CONFIG_USB_DWC2_HOST=y +# CONFIG_USB_DWC2_PERIPHERAL is not set +# CONFIG_USB_DWC2_DUAL_ROLE is not set # CONFIG_USB_EHCI_HCD is not set +# CONFIG_USB_GADGET_XILINX is not set CONFIG_USB_SUPPORT=y # CONFIG_USB_UHCI_HCD is not set CONFIG_USE_OF=y