]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: nand: denali: correct buffer alignment for DMA transfer
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 19 Jul 2018 01:13:23 +0000 (10:13 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 24 Jul 2018 23:47:52 +0000 (08:47 +0900)
commit833658e989081aebe001ae7b98eac1dfc8ef045c
treec4f4944dab0f70d722b0fe73de231ae873ef67ba
parent91d836c23499deb2a04306635c13c5a862db33e4
mtd: nand: denali: correct buffer alignment for DMA transfer

The NAND framework makes sure to pass in the buffer with at least
chip->buf_align alignment.  Currently, the Denali NAND driver only
requests 16 byte alignment.  This causes unaligned cache operations
for the DMA transfer.

[Error Example]

=> nand read 81000010 0 1000

NAND read: device 0 offset 0x0, size 0x1000
CACHE: Misaligned operation at range [8100001081001010]
CACHE: Misaligned operation at range [8100001081001010]
CACHE: Misaligned operation at range [8100001081001010]
CACHE: Misaligned operation at range [8100001081001010]
 4096 bytes read: OK

Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/nand/denali.c