summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-09-15 01:18:15 +0200
committerMarek Vasut <marex@denx.de>2014-10-06 17:34:40 +0200
commit1bf29b3d5571bed2b61581e839599337968deb80 (patch)
tree201006e883aec036e088fe1292f1441b57c11660 /net
parentf33c9305830d5f8b996a2aaea66591dc93143fe5 (diff)
downloadu-boot-imx-1bf29b3d5571bed2b61581e839599337968deb80.zip
u-boot-imx-1bf29b3d5571bed2b61581e839599337968deb80.tar.gz
u-boot-imx-1bf29b3d5571bed2b61581e839599337968deb80.tar.bz2
mmc: dw_mmc: Fix cache alignment issue
The DMA descriptors used by the DW MMC block must be aligned to cacheline size, otherwise we are unable to properly flush/inval cache over them and we get data corruption. The reason I chose this approach of expanding the structure is because the driver allocates the descriptors in bulk. This approach does waste space by inserting slop inbetween the descriptors, but it makes access to the descriptors easy as the compiler does know the real size of the structure. It also makes cache operations easy, since the size of the structure is cache aligned and the structure start address is as well. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@altera.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@ti.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Pavel Machek <pavel@denx.de> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Acked-by: Pavel Machek <pavel@denx.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions