dmatest: correct raid6 PQ test
authorAnatolij Gustschin <agust@denx.de>
Mon, 15 Feb 2010 21:35:23 +0000 (22:35 +0100)
committerDan Williams <dan.j.williams@intel.com>
Mon, 1 Mar 2010 05:18:36 +0000 (22:18 -0700)
The number of PQ sources specified by module parameter "pq_sources"
is always forced odd to fit into dmatest's destination verificaton
scheme. But number of PQ sources and coefficients as passed to the
driver's prep_dma_pq() is not adjusted accordingly.

Fix it now to get correct PQ testing results in the case passed
"pq_sources" parameter is even.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

No differences found