ahci: Support splitting of read transactions into multiple chunks
authorVadim Bendebury <vbendeb@chromium.org>
Mon, 29 Oct 2012 05:23:44 +0000 (05:23 +0000)
committerTom Rini <trini@ti.com>
Fri, 2 Nov 2012 22:20:40 +0000 (15:20 -0700)
commit284231e49a2b4ee00647db592c54c3efd1ac7d35
treecc7c0ba3f7f7da2d782adbd488342f108a5f23fe
parente08ebf468784668155fd889b9eaf7868f283fe87
ahci: Support splitting of read transactions into multiple chunks

With an Intel AHCI controller, the driver does not operate properly
if the requested amount of blocks to read exceeds 255.

It is probably possible to specify 0 as the block count and the driver
will read 256 blocks, but it was decided to limit the number of blocks
read at once to 128 (it should be a power of 2 for the optimal
performance of solid state drives).

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ahci.c