Skip to content
Snippets Groups Projects
  • Anton staaf's avatar
    a1969923
    mmc: dcache: allocate cache aligned buffers for ext_csd · a1969923
    Anton staaf authored
    
    Currently the mmc_change_freq and mmc_startup functions allocates
    buffers on the stack that are passed down to the MMC device driver.
    These buffers could be unaligned to the L1 dcache line size.  This
    causes problems when using DMA and with caches enabled.
    
    This patch correctly cache alignes the buffers used for reading the
    ext_csd data from an MMC device.
    
    Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
    Cc: Lukasz Majewski <l.majewski@samsung.com>
    Cc: Mike Frysinger <vapier@gentoo.org>
    Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
    a1969923
    History
    mmc: dcache: allocate cache aligned buffers for ext_csd
    Anton staaf authored
    
    Currently the mmc_change_freq and mmc_startup functions allocates
    buffers on the stack that are passed down to the MMC device driver.
    These buffers could be unaligned to the L1 dcache line size.  This
    causes problems when using DMA and with caches enabled.
    
    This patch correctly cache alignes the buffers used for reading the
    ext_csd data from an MMC device.
    
    Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
    Cc: Lukasz Majewski <l.majewski@samsung.com>
    Cc: Mike Frysinger <vapier@gentoo.org>
    Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>