From patchwork Thu Mar 21 20:23:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jochen Sprickerhof X-Patchwork-Id: 10864615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 868436C2 for ; Fri, 22 Mar 2019 00:05:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 659F82A561 for ; Fri, 22 Mar 2019 00:05:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57F532A56A; Fri, 22 Mar 2019 00:05:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F4E72A561 for ; Fri, 22 Mar 2019 00:05:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbfCVAFs (ORCPT ); Thu, 21 Mar 2019 20:05:48 -0400 Received: from smtprelay04.ispgateway.de ([80.67.29.8]:35908 "EHLO smtprelay04.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbfCVAFs (ORCPT ); Thu, 21 Mar 2019 20:05:48 -0400 X-Greylist: delayed 4865 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 Mar 2019 20:05:47 EDT Received: from [95.33.77.149] (helo=localhost) by smtprelay04.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1h74DR-0006Sy-Ua; Thu, 21 Mar 2019 21:23:06 +0100 Date: Thu, 21 Mar 2019 21:23:03 +0100 From: Jochen Sprickerhof To: Marek Szyprowski , Roger Quadros , Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I Subject: [PATCH] usb: dwc3: Softdep for GBit Ethernet on Odroid XU4 Message-ID: <20190321202303.GA1399@vis> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Df-Sender: NTc3MDAz Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds a soft dependency to the dwc3 module to load it after xhci-plat as proposed in: https://marc.info/?l=linux-usb&m=155230272022603&w=2 Old behaviour: $ lsusb -t /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 480M New behaviour: $ lsusb -t /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M Tested on Debian unstable using Linux 4.19.29. Note, this needs a hard reset when coming from an unpatched kernel. Signed-off-by: Jochen Sprickerhof --- drivers/usb/dwc3/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 103807587dc6..9017e4ed9d99 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1746,3 +1746,4 @@ MODULE_ALIAS("platform:dwc3"); MODULE_AUTHOR("Felipe Balbi "); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("DesignWare USB3 DRD Controller Driver"); +MODULE_SOFTDEP("pre: xhci_plat_hcd");