drivers/mmcsd/mmcsd_sdio.c: Align DMA buffer for MBURST size.

This commit is contained in:
David S. Alessio 2019-10-31 07:17:41 -06:00 committed by Gregory Nutt
parent 43a3a0f400
commit 29612c40c5

View File

@ -2750,12 +2750,14 @@ static int mmcsd_mmcinitialize(FAR struct mmcsd_state_s *priv)
* the correct number of blocks and capacity. Returns OK if ext CSD is read
* correctly or error in not.
*
* Note: buffer[] alignment must correspond with MBURST size
*
****************************************************************************/
static int mmcsd_mmcreadextCSD (FAR struct mmcsd_state_s *priv)
{
int ret;
uint8_t buffer[512];
uint8_t buffer[512] __attribute__ ((aligned(16)));
DEBUGASSERT(priv != NULL);