[PATCH v2] mmc: sdio: fix alignment issue in struct sdio_func
Kevin Hilman
khilman at baylibre.com
Wed Mar 29 15:58:10 PDT 2017
Heiner Kallweit <hkallweit1 at gmail.com> writes:
> Certain 64-bit systems (e.g. Amlogic Meson GX) require buffers to be
> used for DMA to be 8-byte-aligned. struct sdio_func has an embedded
> small DMA buffer not meeting this requirement.
> Testing an extension to meson-gx driver for switching to descriptor
> chain mode broke SDIO therefore. Aligning tmpbuf to a 8-byte
> boundary fixed the driver behavior.
>
> Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>
> Tested-by: Helmut Klein <hgkr.klein at gmail.com>
Reviewed-by: Kevin Hilman <khilman at baylibre.com>
Kevin
More information about the linux-amlogic
mailing list