]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf43b88dd1f98e0ebf3bf3ce2a3ae7af28771b735
treeca9492f1b0316c5d05e9b0f4325354cefea19484
parent483162ee86adb5d02822467da75ff414a53a9b48
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 53a8883bc7f02 ("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