x86: ich-spi: Fix a bug of reading from a non-64 bytes aligned address
authorBin Meng <bmeng.cn@gmail.com>
Wed, 10 Dec 2014 08:35:50 +0000 (16:35 +0800)
committerSimon Glass <sjg@chromium.org>
Sat, 13 Dec 2014 22:08:04 +0000 (15:08 -0700)
commit15c7c6b31ad8742bd6e63be35f82193895ff8bdd
tree3efb8cf25046f533e11d31aada8a4e8ac78293e6
parenta5a58826110eb3da2956c6b3213bd750e166d75c
x86: ich-spi: Fix a bug of reading from a non-64 bytes aligned address

The ich spi controller driver spi_xfer() tries to align reading
address to 64 bytes when doing spi data in, which causes a bug of
either infinite loop or a huge size memcpy().

Actually the ich spi controller does not have such requirement of
64 bytes alignment when reading data from spi slave devices.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
drivers/spi/ich.c