mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V2 0/2] usb: musb: fix dropped packets
@ 2016-05-23 12:00 Andrew Goodbody
  2016-05-23 12:00 ` [PATCH V2 1/2] usb: musb: Ensure rx reinit occurs for shared_fifo endpoints Andrew Goodbody
  2016-05-23 12:00 ` [PATCH V2 2/2] usb: musb: Stop bulk endpoint while queue is rotated Andrew Goodbody
  0 siblings, 2 replies; 9+ messages in thread
From: Andrew Goodbody @ 2016-05-23 12:00 UTC (permalink / raw)
  To: b-liu; +Cc: gregkh, linux-usb, linux-kernel, Andrew Goodbody

The musb driver can drop rx packets when heavily loaded. These two
patches address two issues that can cause this. Both issues arose
when an endpoint was reprogrammed. The first patch is a logic bug
that resulted in a shared_fifo in rx mode not having its state
cleared out. The second patch fixes a race condition caused by
not stopping the dedicated endpoint for bulk packets before
rotating its queue which allowed a packet to be recieved and then
thrown away.

V2 added a comment and removed debugging code

Andrew Goodbody (2):
  usb: musb: Ensure rx reinit occurs for shared_fifo endpoints
  usb: musb: Stop bulk endpoint while queue is rotated

 drivers/usb/musb/musb_host.c | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2016-05-23 16:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-23 12:00 [PATCH V2 0/2] usb: musb: fix dropped packets Andrew Goodbody
2016-05-23 12:00 ` [PATCH V2 1/2] usb: musb: Ensure rx reinit occurs for shared_fifo endpoints Andrew Goodbody
2016-05-23 12:00 ` [PATCH V2 2/2] usb: musb: Stop bulk endpoint while queue is rotated Andrew Goodbody
2016-05-23 12:38   ` Sergei Shtylyov
2016-05-23 13:26     ` Andrew Goodbody
2016-05-23 13:40       ` Sergei Shtylyov
2016-05-23 14:37         ` Sergei Shtylyov
2016-05-23 15:19           ` Andrew Goodbody
2016-05-23 16:46             ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®