Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753500AbbDGJrW (ORCPT ); Tue, 7 Apr 2015 05:47:22 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:32886 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824AbbDGJrR (ORCPT ); Tue, 7 Apr 2015 05:47:17 -0400 From: Johan Hovold To: Greg Kroah-Hartman , Felipe Balbi , Alan Stern Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Warren , Thierry Reding , Alexandre Courbot , linux-tegra@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] USB: fix lockup on disconnect Date: Tue, 7 Apr 2015 11:46:50 +0200 Message-Id: <1428400012-7563-1-git-send-email-johan@kernel.org> X-Mailer: git-send-email 2.0.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 34 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/