All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Jaswinder Singh <jaswinder.singh@linaro.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	<stable@vger.kernel.org>
Subject: Re: [PATCH] usb: gadget: function: acm: return zlp for OUT setup
Date: Wed, 14 Oct 2015 10:48:28 -0500	[thread overview]
Message-ID: <87k2qpbgdv.fsf@saruman.tx.rr.com> (raw)
In-Reply-To: <CABb+yY1s9Qxa6-AE2jeX8P7SB9v3dt6pb2Fz0DZMzMQDrrcf_w@mail.gmail.com>

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


Hi,

Jassi Brar <jassisinghbrar@gmail.com> writes:
> On Wed, Oct 14, 2015 at 8:42 PM, Felipe Balbi <balbi@ti.com> wrote:
>>
>> Hi,
>>
>> jaswinder.singh@linaro.org writes:
>>> From: Jassi Brar <jaswinder.singh@linaro.org>
>>>
>>> We must return 0 for any OUT setup request, otherwise
>>> protocol error may occur.
>>
>> have you seen any such errors ?
>>
> Yes. While testing my new udc driver.
>
>
>> Care to describe what problems you have seen and which UDC you were using,
>> what's the exact scenario. How have you tested this ?
>>
> The udc I am writing the driver for is not yet public. To test my
> driver at lowest level possible, I use 'usbmon' to capture and analyze
> traffic since I don't have any hardware probe.
>
> I see the following on gadget side
> -------
> configfs-gadget gadget: non-core control req21.20 v0000 i0001 l7
> configfs-gadget gadget: acm ttyGS0 req21.20 v0000 i0001 l7
> configfs-gadget gadget: acm ttyGS0 completion, err -71
> -------
>
> and the following on host side usbmon capture
> -------
> ffff88041ed01f00 540296433 S Co:3:023:0 s 21 20 0000 0001 0007 7 =
> 80250000 000008
> ffff88041ed01f00 540296790 C Co:3:023:0 -71 0
> -------

and you did you even consider this could be a bug in your new UDC driver
at all ? This works fine with other UDCs.

How far are you in developing this new UDC driver ? Did you run USBCV at
all ? Are you sure you're implementing EP0 handling correctly ? What
sort of tests have you done with this UDC ? Is it working with testusb
against a known good host (EHCI and XHCI should be good for that) ?

-- 
balbi

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

  reply	other threads:[~2015-10-14 15:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14 14:56 [PATCH] usb: gadget: function: acm: return zlp for OUT setup jaswinder.singh
2015-10-14 15:12 ` Felipe Balbi
2015-10-14 15:33   ` Jassi Brar
2015-10-14 15:48     ` Felipe Balbi [this message]
2015-10-14 16:43       ` Jassi Brar
2015-10-14 17:10         ` Felipe Balbi
2015-10-15  3:27           ` Jassi Brar
2015-10-15 19:18             ` Felipe Balbi
2015-10-14 17:48         ` Alan Stern
2015-10-14 18:32           ` Felipe Balbi
2015-10-14 19:32             ` Alan Stern
2015-10-15  3:38           ` Jassi Brar
2015-10-15 14:29             ` Alan Stern
2015-10-15 14:51               ` Jassi Brar
2015-10-15 16:55                 ` Alan Stern

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=87k2qpbgdv.fsf@saruman.tx.rr.com \
    --to=balbi@ti.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=jaswinder.singh@linaro.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stable@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.