]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Round up size when allocating so that it is cache line aligned
authorFaiz Abbas <faiz_abbas@ti.com>
Tue, 19 Sep 2017 11:23:50 +0000 (16:53 +0530)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Oct 2017 02:41:09 +0000 (20:41 -0600)
commit5924da1dfe56d32a45b8adf29bdc8caf788bd4c8
tree27f6dfd9254f78a745b11e252800415ff4cb2eaa
parentae06a1b9960aa97bd876840ebdb644c2952cd482
dm: core: Round up size when allocating so that it is cache line aligned

The size variable may not be always be a mulitple of
ARCH_DMA_MINALIGN and using it to flush cache leads to cache
misaligned warnings.

Therefore, round up the size to a multiple of ARCH_DMA_MINLAIGN
when allocating private data.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c