From: Felipe Balbi <balbi@kernel.org>
To: Jonathan Thibault <jonathan@navigue.com>, linux-usb@vger.kernel.org
Subject: Re: USB_DWC3_OF_SIMPLE
Date: Thu, 09 Jan 2020 11:02:21 +0200 [thread overview]
Message-ID: <871rs9t336.fsf@kernel.org> (raw)
In-Reply-To: <c3a1c48c-1ac7-e5c2-e09a-3b55100735ab@navigue.com>
[-- Attachment #1: Type: text/plain, Size: 1712 bytes --]
Hi,
Jonathan Thibault <jonathan@navigue.com> writes:
> Greetings,
>
> I am currently trying to port OpenWRT to Ubiquiti's EdgeRouter 4 which
> is a Cavium Octeon 7130. While investigating to support XHCI (the
> device has a single USB3 port), I ran into the dwc3 driver which
> apparently supports that very chipset via the dwc3-of-simple glue.
>
> Looking at Ubiquiti's own firmware, it seems they are using a modified
> version of the standard xhci-platform driver.
>
> So now I am faced with two different approaches:
>
> 1- Attempt to replicate Ubiquiti's modifications to xhci-plat.
>
> 2- Switch to dwc3-of-simple.
>
> With option 1, so far, I can get xhci to load by merely adding a
> '.compatible =' member to usb_xhci_of_match[], but the driver complains
> about LPM algorithms and disables LPM (which may be fine, I don't know
> if it is even supported on this device).
>
> Option 2 (where you might hopefully help), potentially involves more
> modification to the OpenWRT since their Octeon kernel config does not
> appear to enable CONFIG_COMMON_CLK, which the driver depends on. And I
> do not know if I should also disable standard ohci and ehci drivers once
> I manage to enable the USB_DWC3_OF_SIMPLE.
>
> I'm looking for recommendations on the best approach. Keep in mind that
> while I can cobble together some ugly but functional hacks, I am not an
> experienced kernel dev.
Just switch to dwc3-of-simple, it already supports the SoC you're
dealing with. Try removing the dependency on CONFIG_COMMON_CLK. I think
we already get empty stubs when common clk is disabled.
If that works for you, that's an easy patch.
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2020-01-09 9:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-08 16:19 USB_DWC3_OF_SIMPLE Jonathan Thibault
2020-01-09 9:02 ` Felipe Balbi [this message]
2020-01-09 15:27 ` USB_DWC3_OF_SIMPLE Jonathan Thibault
2020-01-15 8:56 ` USB_DWC3_OF_SIMPLE Felipe Balbi
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=871rs9t336.fsf@kernel.org \
--to=balbi@kernel.org \
--cc=jonathan@navigue.com \
--cc=linux-usb@vger.kernel.org \
/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.