linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] USB: fix lockup on disconnect
@ 2015-04-07  9:46 Johan Hovold
       [not found] ` <1428400012-7563-1-git-send-email-johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Johan Hovold @ 2015-04-07  9:46 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Felipe Balbi, Alan Stern
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Stephen Warren,
	Thierry Reding, Alexandre Courbot,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Johan Hovold

These patches fix an issue I ran into into where the Beaglebone Black
would lock up on disconnect.

Turns out this was related to the transfer_buffers not being properly
aligned, causing musb to use temporary buffers for the transfers. On
transfer errors (e.g. during disconnect), the full buffer content was
still being copied, something which could lead starvation of the hub
work queue when using large-enough buffers.

Included is also a fix for the same issue for ehci-tegra that has been
compile tested only.

Note that the octeon-hcd driver in staging, which also uses temporary
buffers for unaligned transfers, appears to already get this right.

Johan


Johan Hovold (2):
  USB: musb: fix inefficient copy of unaligned buffers
  USB: ehci-tegra: fix inefficient copy of unaligned buffers

 drivers/usb/host/ehci-tegra.c | 2 +-
 drivers/usb/musb/musb_host.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.0.5

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

end of thread, other threads:[~2015-04-07 19:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-07  9:46 [PATCH 0/2] USB: fix lockup on disconnect Johan Hovold
     [not found] ` <1428400012-7563-1-git-send-email-johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-04-07  9:46   ` [PATCH 1/2] USB: musb: fix inefficient copy of unaligned buffers Johan Hovold
2015-04-07  9:46   ` [PATCH 2/2] USB: ehci-tegra: " Johan Hovold
2015-04-07 15:30     ` Alan Stern
     [not found]       ` <Pine.LNX.4.44L0.1504071127210.1430-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2015-04-07 19:59         ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).