All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
	Roger Quadros <rogerq@ti.com>, Felipe Balbi <balbi@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Kishon Vijay Abraham I <kishon@ti.com>
Subject: [PATCH] usb: dwc3: Softdep for GBit Ethernet on Odroid XU4
Date: Thu, 21 Mar 2019 21:23:03 +0100	[thread overview]
Message-ID: <20190321202303.GA1399@vis> (raw)

[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]

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 <git@jochen.sprickerhof.de>
---
 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 <balbi@ti.com>");
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("DesignWare USB3 DRD Controller Driver");
+MODULE_SOFTDEP("pre: xhci_plat_hcd");
-- 
2.11.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
	Roger Quadros <rogerq@ti.com>, Felipe Balbi <balbi@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Kishon Vijay Abraham I <kishon@ti.com>
Subject: usb: dwc3: Softdep for GBit Ethernet on Odroid XU4
Date: Thu, 21 Mar 2019 21:23:03 +0100	[thread overview]
Message-ID: <20190321202303.GA1399@vis> (raw)

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 <git@jochen.sprickerhof.de>
---
 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 <balbi@ti.com>");
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("DesignWare USB3 DRD Controller Driver");
+MODULE_SOFTDEP("pre: xhci_plat_hcd");

             reply	other threads:[~2019-03-22  0:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 20:23 Jochen Sprickerhof [this message]
2019-03-21 20:23 ` usb: dwc3: Softdep for GBit Ethernet on Odroid XU4 Jochen Sprickerhof
2019-03-22  5:37 ` [PATCH] " Greg Kroah-Hartman
2019-03-22  5:37   ` Greg Kroah-Hartman
2019-03-22 20:41   ` [PATCH] " Jochen Sprickerhof
2019-03-22 20:41     ` Jochen Sprickerhof
2019-03-23  6:05     ` [PATCH] " Greg Kroah-Hartman
2019-03-23  6:05       ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190321202303.GA1399@vis \
    --to=git@jochen.sprickerhof.de \
    --cc=balbi@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kishon@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=rogerq@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.