diff options
author | Frank Li <Frank.Li@nxp.com> | 2023-05-18 16:49:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-29 15:52:37 +0100 |
commit | 3124387537bc94251e65c2841062d14736380ec4 (patch) | |
tree | 92910d9061d9839f529d19d007c61a9a4971b3c2 /drivers/usb/cdns3/cdns3-imx.c | |
parent | 2a1c4639d6d6bcee27f74e38f83ffb43579c4733 (diff) | |
download | linux-3124387537bc94251e65c2841062d14736380ec4.tar.gz linux-3124387537bc94251e65c2841062d14736380ec4.tar.bz2 linux-3124387537bc94251e65c2841062d14736380ec4.zip |
usb: cdns3: optimize OUT transfer by copying only actual received data
Previously, the entire length of the request, which is equal to or greater
than the actual data, was dma synced and memcpy when using the bounce
buffer. Actually only the actual data indicated by request->actual need be
synced and copied.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20230518204947.3770236-2-Frank.Li@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions