Re: [PATCH v2] dmaengine: sh: usb-dmac: set tx_result parameters

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

 



On 18-06-20, 21:07, Yoshihiro Shimoda wrote:
> A client driver (renesas_usbhs) assumed that
> dmaengine_tx_status() could return the residue even if
> the transfer was completed. However, this was not correct
> usage [1] and this caused to break getting the residue after
> the commit 24461d9792c2 ("dmaengine: virt-dma: Fix access after
> free in vchan_complete()") actually. So, this is possible to get
> wrong received size if the usb controller gets a short packet.
> For example, g_zero driver causes "bad OUT byte" errors.
> 
> To use the tx_result from the renesas_usbhs driver when
> the transfer is completed, set the tx_result parameters.
> 
> Notes that the renesas_usbhs driver needs to update for it.
> 
> [1]
> https://lore.kernel.org/dmaengine/20200616165550.GP2324254@vkoul-mobl/

Applied, thanks

-- 
~Vinod



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux