All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@kernel.org>
To: Claus Stovgaard <claus.stovgaard@gmail.com>,
	Alan Stern <stern@rowland.harvard.edu>
Cc: "linux-usb\@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: Options for forcing dwc3 gadget to only accept superspeed
Date: Wed, 13 May 2020 10:34:47 +0300	[thread overview]
Message-ID: <87k11gp9t4.fsf@kernel.org> (raw)
In-Reply-To: <6d19d49dcfe7467556b0462b16e76677c1999875.camel@gmail.com>

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


Hi,

Claus Stovgaard <claus.stovgaard@gmail.com> writes:
> On tir, 2020-05-12 at 15:52 -0400, Alan Stern wrote:
>> On Tue, May 12, 2020 at 09:25:38PM +0200, Claus Stovgaard wrote:
>> > 
>> > In a certain scenario I would like to force the dwc3 to only
>> > connect
>> > via superspeed and not fall back to USB2.
>> > 
>> > What options exist for forcing the dwc3 to keep retry?
>> 
>> The USB-3 spec forbids devices from operating only at SuperSpeed.  
>> Devices must be able to connect at high speed, although possibly
>> with 
>> reduced functionality.
>> 
>> Alan Stern
>> 
>
> I understand the requirement from the USB 3 specification. Though in
> the scenario for this specific device, it is not about comply with the
> USB 3 specification, but my question is rather what options I have for
> not comply with the specification here, and then force retry of USB 3,
> using the dwc3 as device.
>
> The device is in a fixed mounting with a fixed host. Sometimes when the
> host and device is powered up, it ends in high-speed instead of super-
> speed. I would like the option for "I will not be compliant with USB,
> but rather retry super-speed".

If it's "ending in super-speed" this means it tried RX.Detect and it
failed, thus falling back to high-speed. It's likely that the signal
quality in your setup has degraded or is, at least, sub-par.

Forcing a SS-only setup would just give you a device that doesn't even
enumerate in some cases.

Could you capture dwc3 tracepoints of the problem?

Also, which kernel version are you running? Which platform?

best

-- 
balbi

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

  parent reply	other threads:[~2020-05-13  7:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-12 19:25 Options for forcing dwc3 gadget to only accept superspeed Claus Stovgaard
2020-05-12 19:52 ` Alan Stern
2020-05-12 20:08   ` Claus Stovgaard
2020-05-13  4:43     ` Sid Spry
2020-05-13  4:47       ` Sid Spry
2020-05-14  7:06         ` Claus Stovgaard
2020-05-13  7:34     ` Felipe Balbi [this message]
2020-05-14  8:53       ` Claus Stovgaard
2020-05-14  9:34         ` 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=87k11gp9t4.fsf@kernel.org \
    --to=balbi@kernel.org \
    --cc=claus.stovgaard@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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.