[lkml]   [2017]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH AUTOSEL for-4.9 04/53] spi: imx: adjust watermark level according to transfer length
On Wed, Nov 08, 2017 at 08:49:55PM +0000, Levin, Alexander (Sasha Levin) wrote:
> From: Jiada Wang <>
> [ Upstream commit 66459c5a50a787c474b734b586328f7111ab6df0 ]
> Previously DMA watermark level is configured to fifosize/2,
> DMA mode can be used only when transfer length can be divided
> by 'watermark level * bpw', which makes DMA mode not pratical.
> This patch adjusts watermark level to largest number (no bigger
> than fifosize/2) which can divide 'tranfer length / bpw' for
> each transfer.

This seems like an optimization not a bug fix...
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2017-11-08 21:59    [W:0.262 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site