Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1587217
| From | Peter Chen <hzpeterchen@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode |
| Date | 2017-02-24 02:10 +0100 |
| Message-ID | <tecyt-Yd-1@gated-at.bofh.it> (permalink) |
| References | <tbtYS-6zA-11@gated-at.bofh.it> <tbtYS-6zA-9@gated-at.bofh.it> <tdX6q-7c9-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Feb 23, 2017 at 02:04:50PM +0530, Vivek Gautam wrote:
>
>
> On 02/16/2017 06:36 PM, Roger Quadros wrote:
> >dra7 OTG core limits the host controller to USB2.0 (high-speed) mode
> >when we're operating in dual-role.
> >
> >We work around that by bypassing the OTG core and reading the
> >extcon framework directly for ID/VBUS events.
> >
> >Signed-off-by: Roger Quadros <rogerq@ti.com>
> >---
> > Documentation/devicetree/bindings/usb/dwc3.txt | 2 +
> > drivers/usb/dwc3/core.c | 169 ++++++++++++++++++++++++-
> > drivers/usb/dwc3/core.h | 5 +
> > 3 files changed, 170 insertions(+), 6 deletions(-)
> >
> >diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt
> >index e3e6983..9955c0d 100644
> >--- a/Documentation/devicetree/bindings/usb/dwc3.txt
> >+++ b/Documentation/devicetree/bindings/usb/dwc3.txt
> >@@ -53,6 +53,8 @@ Optional properties:
> > - snps,quirk-frame-length-adjustment: Value for GFLADJ_30MHZ field of GFLADJ
> > register for post-silicon frame length adjustment when the
> > fladj_30mhz_sdbnd signal is invalid or incorrect.
> >+ - extcon: phandle to the USB connector extcon device. If present, extcon
> >+ device will be used to get USB cable events instead of OTG controller.
> > - <DEPRECATED> tx-fifo-resize: determines if the FIFO *has* to be reallocated.
> >diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> >index 619fa7c..b02d911 100644
> >--- a/drivers/usb/dwc3/core.c
> >+++ b/drivers/usb/dwc3/core.c
>
> [snip]
>
> >@@ -1587,6 +1727,14 @@ static int dwc3_probe(struct platform_device *pdev)
> > dwc3_get_properties(dwc);
> >+ if (dev->of_node) {
> >+ if (of_property_read_bool(dev->of_node, "extcon"))
> >+ dwc->edev = extcon_get_edev_by_phandle(dev, 0);
>
> Don't we want separate edev's for vbus and id ?
> One can have separate pins connected to them and in that case
> we can't get the events out of one pin only.
>
Current extcon-usb-gpio driver supports id and vbus at the same time,
that means there are two optional gpios under one extcon node.
--
Best Regards,
Peter Chen
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Roger Quadros <rogerq@ti.com> - 2017-02-16 14:10 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-02-23 09:40 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Peter Chen <hzpeterchen@gmail.com> - 2017-02-24 02:10 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-02-24 04:20 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Roger Quadros <rogerq@ti.com> - 2017-02-24 13:10 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Chanwoo Choi <cwchoi00@gmail.com> - 2017-02-25 04:50 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Chanwoo Choi <cwchoi00@gmail.com> - 2017-02-25 05:00 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-02-28 15:10 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Chanwoo Choi <cwchoi00@gmail.com> - 2017-02-25 04:40 +0100
Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Roger Quadros <rogerq@ti.com> - 2017-02-28 16:20 +0100
csiph-web