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 Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux