OSDN Git Service

usb: dwc2: Fix inefficient copy of unaligned buffers
authorAntti Seppälä <a.seppala@gmail.com>
Thu, 5 Jul 2018 14:31:54 +0000 (17:31 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 17 Jul 2018 07:12:52 +0000 (10:12 +0300)
commit1e111e885238bd861fd64273aab2ad1f803e34a3
treeca9492f1b0316c5d05e9b0f4325354cefea19484
parent56406e017a883b54b339207b230f85599f4d70ae
usb: dwc2: Fix inefficient copy of unaligned buffers

Make sure only to copy any actual data rather than the whole buffer,
when releasing the temporary buffer used for unaligned non-isochronous
transfers.

Taken directly from commit 0efd937e27d5e ("USB: ehci-tegra: fix inefficient
copy of unaligned buffers")

Tested with Lantiq xRX200 (MIPS) and RPi Model B Rev 2 (ARM)

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hcd.c