Re: [PATCH 2/2] usb: dwc2: Fix inefficient copy of unaligned buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, Jul 5, 2018 at 7:31 AM, Antti Seppälä <a.seppala@xxxxxxxxx> wrote:
> 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)
>
> Signed-off-by: Antti Seppälä <a.seppala@xxxxxxxxx>
> ---
>  drivers/usb/dwc2/hcd.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)

I haven't personally gone down and tracked down the validity of
"actual_length", but I agree that this matches what tegra has done and
seems sane.

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux