From: Vivek Gautam <vivek.gautam@codeaurora.org>
To: Peter Chen <hzpeterchen@gmail.com>
Cc: Roger Quadros <rogerq@ti.com>,
balbi@kernel.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode
Date: Fri, 24 Feb 2017 08:38:34 +0530 [thread overview]
Message-ID: <88b3eb2d-feb7-fd34-2f83-12bee6970779@codeaurora.org> (raw)
In-Reply-To: <20170224005703.GA8340@b29397-desktop>
On 02/24/2017 06:27 AM, Peter Chen wrote:
> 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.
>
Right, and we would want to leverage that by providing couple
of phandles for vbus and id, and requesting the two in driver.
Regards
Vivek
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2017-02-24 3:14 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-16 13:06 [PATCH v2 0/4] usb: dwc3: dual-role support Roger Quadros
2017-02-16 13:06 ` [PATCH v2 1/4] usb: dwc3: core.h: add some register definitions Roger Quadros
2017-02-16 13:06 ` [PATCH v2 2/4] usb: dwc3: omap: don't miss events during suspend/resume Roger Quadros
2017-02-16 13:06 ` [PATCH v2 3/4] usb: dwc3: add dual-role support Roger Quadros
2017-03-28 11:07 ` Felipe Balbi
2017-03-29 11:33 ` Roger Quadros
2017-03-29 13:15 ` Felipe Balbi
2017-03-30 6:40 ` Roger Quadros
2017-03-30 9:27 ` Felipe Balbi
2017-04-03 5:31 ` John Youn
2017-02-16 13:06 ` [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode Roger Quadros
2017-02-23 8:34 ` Vivek Gautam
2017-02-24 0:57 ` Peter Chen
2017-02-24 3:08 ` Vivek Gautam [this message]
2017-02-24 12:02 ` Roger Quadros
2017-02-25 3:46 ` Chanwoo Choi
2017-02-25 3:50 ` Chanwoo Choi
2017-02-28 13:54 ` Vivek Gautam
2017-02-25 3:35 ` Chanwoo Choi
2017-02-28 15:17 ` Roger Quadros
2017-03-28 11:10 ` Felipe Balbi
2017-03-29 9:57 ` Roger Quadros
2017-03-29 10:32 ` Felipe Balbi
2017-03-29 12:00 ` Roger Quadros
2017-03-29 13:21 ` Felipe Balbi
2017-03-29 13:58 ` Roger Quadros
2017-03-30 9:32 ` Felipe Balbi
2017-03-30 10:11 ` Roger Quadros
2017-03-31 7:43 ` Roger Quadros
2017-03-31 7:46 ` Felipe Balbi
2017-03-31 11:50 ` Roger Quadros
2017-03-31 12:00 ` Felipe Balbi
2017-03-31 12:21 ` Roger Quadros
2017-03-31 12:58 ` Felipe Balbi
2017-03-13 8:33 ` [PATCH v2 0/4] usb: dwc3: dual-role support Roger Quadros
2017-03-28 10:27 ` Felipe Balbi
2017-03-29 9:50 ` Roger Quadros
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=88b3eb2d-feb7-fd34-2f83-12bee6970779@codeaurora.org \
--to=vivek.gautam@codeaurora.org \
--cc=balbi@kernel.org \
--cc=hzpeterchen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome