Re: Applied "spi: omap2-mcspi: Undo broken fix for dma transfer of vmalloced buffer" to the spi tree

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

 



On Thu, May 12, 2016 at 12:39:35AM +0900, Akinobu Mita wrote:

> I realized that this undo patch has not been merged to Linus' tree yet.
> I have a fix for this issue (attached patch).  But the change is not
> small and also v4.6 release is soon.  So I think this undo patch
> should go into 4.6 release.

I actually just sent that a few minutes ago anyway.

> The actual DMA transfer length by dmaengine can be smaller than SPI
> transfer length in the specific condition.  In that case, the last
> word needs to be filled after DMA transfer completion.

> This fixes it by detecting that case and remap the scatterlist with
> correct DMA transfer length.

This feels like it should be in the framework, I imagine other devices
will have similar limiations.  Especially if the limitation comes from
the DMA engine I'd hope we can arrange to query it somehow...  can you
provide a bit more detail on what the restriction is please?

Attachment: signature.asc
Description: PGP signature


[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 Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux