]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk: part: align buffer so it can be used with DMA enabled drivers
authorStefan Agner <stefan.agner@toradex.com>
Wed, 23 Aug 2017 16:46:17 +0000 (09:46 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 26 Aug 2017 18:56:15 +0000 (14:56 -0400)
commit5c27535dc9a0a4858cb3efad2400ffe83c678441
tree679c069cf84f14e92ff8a2e5b75c092ae94cfd4b
parent527d86558eb45edd1543e38d77cd1e1f09936ec1
disk: part: align buffer so it can be used with DMA enabled drivers

When using ISO partitions with a DMA enabled block device driver
reading the ISO partition leads to unaligned DMA operations:
  CACHE: Misaligned operation at range [bffb7da8bffb85a8]

Align the buffer to make sure we pass a buffer which works for
DMA operations.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
disk/part_iso.c