From: Guennadi Liakhovetski Date: Thu, 17 Dec 2009 16:41:39 +0000 (-0700) Subject: sh: fix DMA driver's descriptor chaining and cookie assignment X-Git-Tag: v2.6.33-rc3~33^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3542a113ab2f5880f1b62e5909d754250fb57d6b;p=pandora-kernel.git sh: fix DMA driver's descriptor chaining and cookie assignment The SH DMA driver wrongly assigns negative cookies to transfer descriptors, also, its chaining of partial descriptors is broken. The latter problem is usually invisible, because maximum transfer size per chunk is 16M, but if you artificially set this limit lower, the driver fails. Since cookies are also used in chunk management, both these problems are fixed in one patch. As side effects a possible memory leak, when descriptors are prepared, but not submitted, and multiple races have also been fixed. Signed-off-by: Guennadi Liakhovetski Acked-by: Paul Mundt Acked-by: Nobuhiro Iwamatsu Signed-off-by: Dan Williams --- Reading git-diff-tree failed