All of lore.kernel.org
 help / color / mirror / Atom feed
* Explicit status-stage requests for USB gadgets
@ 2019-04-15 20:19 Alan Stern
  2019-04-16  8:10 ` Felipe Balbi
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Stern @ 2019-04-15 20:19 UTC (permalink / raw)
  To: Felipe Balbi, Paul Elder; +Cc: USB list

Felipe and Paul:

I finally took the time to put more work into the explicit-status-stage
project.  Now I've got patches adding support to both dummy-hcd and
net2280.  (The two patches for net2280 I sent earlier today address
unrelated issues that turned up while this work was under way.)  Along
with Paul's work on musb, it seems like a good start and worth merging.

Getting someone to do the same for dwc2 and dwc3 shouldn't be very 
hard, but they are out of my ballpark.

Paul, there is one change I think we should make to your original core
patch.  usb_gadget_control_complete() should not check request->length,
because it has to be possible for a gadget driver to send a zero-length
reply as the data stage for a control-IN request and still get an 
implicit status-stage request.

Aside from that, everything seems to be ready to move forward.

Felipe, any comments?

Alan Stern


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Explicit status-stage requests for USB gadgets
  2019-04-15 20:19 Explicit status-stage requests for USB gadgets Alan Stern
@ 2019-04-16  8:10 ` Felipe Balbi
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2019-04-16  8:10 UTC (permalink / raw)
  To: Alan Stern, Paul Elder; +Cc: USB list

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


Hi Alan,

Alan Stern <stern@rowland.harvard.edu> writes:
> I finally took the time to put more work into the explicit-status-stage
> project.  Now I've got patches adding support to both dummy-hcd and
> net2280.  (The two patches for net2280 I sent earlier today address
> unrelated issues that turned up while this work was under way.)  Along
> with Paul's work on musb, it seems like a good start and worth merging.

Thanks for doing all the work.

> Getting someone to do the same for dwc2 and dwc3 shouldn't be very 
> hard, but they are out of my ballpark.

I can do dwc3, no problem.

> Paul, there is one change I think we should make to your original core
> patch.  usb_gadget_control_complete() should not check request->length,
> because it has to be possible for a gadget driver to send a zero-length
> reply as the data stage for a control-IN request and still get an 
> implicit status-stage request.
>
> Aside from that, everything seems to be ready to move forward.
>
> Felipe, any comments?

I haven't had time to look at the patches yet due to some internal
projects happening at this moment. I'll try to get to them still this
week.

-- 
balbi

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-16  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-15 20:19 Explicit status-stage requests for USB gadgets Alan Stern
2019-04-16  8:10 ` Felipe Balbi

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.