[U-Boot] [PATCH 1/5] spi/ich.c: Fix a bug of reading from a non-64 bytes aligned address

Simon Glass sjg at chromium.org
Fri Oct 24 06:13:39 CEST 2014


On 23 October 2014 07:36, Bin Meng <bmeng.cn at gmail.com> wrote:
> 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 at gmail.com>
> ---
>  drivers/spi/ich.c | 17 ++---------------
>  1 file changed, 2 insertions(+), 15 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>

Tested on link

Tested-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list