zephyr/include/zephyr/sd
Attie Grande a97b61e7ed include: sd: revise the minimum alignment of card_buffer to 4-bytes
Since a85ffa8, `struct sd_card.card_buffer` has naturally fallen at an
offset that is unaligned. This meant that on systems without support for
unaligned access (e.g: Cortex-M0), a hard fault would present when
executing code that casts the buffer to `uint32_t` (such as
`sdmmc_spi_read_cxd()`, `card_query_written()`, etc...)

Historically, it appears that the alignment of the `card_buffer` member
was good and operational only by chance.

Altering the default value of `CONFIG_SDHC_BUFFER_ALIGNMENT` was
rejected, as this has wider implications.

Fixes #62619

Signed-off-by: Attie Grande <attie.grande@argentum-systems.co.uk>
2024-01-18 20:04:50 +01:00
..
mmc.h sd: MMC API, and MMC Spec 2023-01-14 09:22:22 +01:00
sd.h include: sd: revise the minimum alignment of card_buffer to 4-bytes 2024-01-18 20:04:50 +01:00
sd_spec.h sd: add SDIO specification definitions 2023-11-06 19:01:08 -05:00
sdio.h sd: add sdio header file 2023-11-06 19:01:08 -05:00
sdmmc.h