From: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
To: Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>
Cc: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>,
Greg KH <greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>,
Jack Pham <jackp-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Tim Sander <tim-cVflAIDvGO/+u4ArqExSyQ@public.gmane.org>,
Manu Gautam <mgautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFC/PATCH 2/2] usb: ehci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET
Date: Mon, 12 Aug 2013 12:53:56 -0500 [thread overview]
Message-ID: <20130812175356.GA27954@radagast> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1308091053450.1405-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1867 bytes --]
Hi,
On Fri, Aug 09, 2013 at 11:04:48AM -0400, Alan Stern wrote:
> > > > heh, it doesn't need to be entirely in the core. Core could have the
> > > > generic calls and HCDs could implement some callbacks, but I think quite
> > > > a bit of the code will be similar if we implement the same thing on all
> > > > HCDs.
> > >
> > > What generic calls and callbacks would you suggest? I assume you want
> > > enough to cover not just this one test but the entire USB-CV suite.
> >
> > maybe a single callback for supporting 'testmodes' ? which receives the
> > test mode as argument ?
>
> I don't have a clear picture of how you would apply such an approach to
> this case. There would have to be a way to tell the HCD to insert a
> 15-second delay between the Setup and Data stages of a particular
> control URB. How would you do that? Whatever method you choose,
each test is started after enumerating a known Vid/Pid pair. Based on
that, you *know* which test to run.
> implementing it in every HCD would be a huge amount of work.
sure, we can support different HCDs with time, but once SINGLE_STEP is
implemented in e.g. EHCI, it should be simple to port it to
OHCI/xHCI/MUSB/etc.
> What other test modes would you want to support?
anything that USB[23]0CV supports today. There are even link layer tests
for USB3 and a bunch of others. This SINGLE_STEP_SET_FEATURE is but one
of a large(-ish) test suite which needs to be supported.
> Is it worth adding this support to the standard host controller
> drivers, or should there be a special version (a Kconfig option like
> CONFIG_RCU_TORTURE_TEST) to enable it? Putting a lot of testing code
> in distribution kernels where it will never be used seems like a big
> waste.
right, I think it should be hidden by Kconfig, not arguing against that.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-08-12 17:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1591113.JYQdTBbFW7@dabox>
2013-07-03 3:13 ` [PATCH 0/2] usb: Add support for EHSET Jack Pham
2013-07-03 3:13 ` [PATCH 1/2] usb: misc: EHSET Test Fixture device driver for host compliance Jack Pham
2013-07-03 3:13 ` [RFC/PATCH 2/2] usb: ehci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET Jack Pham
2013-07-25 18:46 ` Greg KH
2013-07-25 19:44 ` Alan Stern
2013-07-25 20:54 ` Felipe Balbi
2013-07-25 21:33 ` Alan Stern
2013-08-09 13:41 ` Felipe Balbi
2013-08-09 14:37 ` Alan Stern
2013-08-09 14:44 ` Felipe Balbi
2013-08-09 15:04 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1308091053450.1405-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2013-08-12 17:53 ` Felipe Balbi [this message]
2013-08-12 18:52 ` Alan Stern
2013-08-13 15:32 ` Felipe Balbi
2013-08-13 16:47 ` Alan Stern
2013-08-13 23:05 ` Jack Pham
2013-08-14 14:10 ` Alan Stern
2013-08-14 17:05 ` Jack Pham
2013-07-25 22:09 ` Jack Pham
[not found] ` <20130725220925.GA28634-NjF/qFWh7jSrUKQWM4GlyCPyLMyjRtWwAL8bYrjMMd8@public.gmane.org>
2013-08-08 23:49 ` [PATCH " Jack Pham
2013-08-09 0:05 ` Greg KH
2013-08-09 2:12 ` Jack Pham
2013-08-09 2:32 ` Greg KH
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=20130812175356.GA27954@radagast \
--to=balbi-l0cymroini0@public.gmane.org \
--cc=greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org \
--cc=jackp-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mgautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org \
--cc=tim-cVflAIDvGO/+u4ArqExSyQ@public.gmane.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.