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)
commit94de648d72c8bc833590523f22386d4babbea988
tree8507157200c687012e13da8a5ea5088528c0151f
parent76bd061f5c7b7550cdaed68ad6219ea7cee288fc
dmatest: correct raid6 PQ test

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>
drivers/dma/dmatest.c