diff options
| author | litchipi <[email protected]> | 2021-06-15 08:53:06 +0000 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2021-07-30 17:12:15 +0800 |
| commit | a9f7be509af90fa5f2c308867ad3b0bd48532c6e (patch) | |
| tree | 25a6adaf951e33440574d5b1c33badc76700d790 /include/stdio_dev.h | |
| parent | 15f7e0dc01d8a851fb1bfbf0e47eab5b67ed26b3 (diff) | |
mmc: rpmb: Fix driver routing memory alignment with tmp buffer
Fix mmc_rpmb_route_frames() implementation to comply with most MMC
drivers that expect some alignment of MMC data frames in memory.
When called from drivers/tee/optee/rpmb.c, the address passed is not
aligned properly. OP-TEE OS inserts a 6-byte header before a raw RPMB
frame which makes RPMB data buffer not 32bit aligned. To prevent breaking
ABI with OPTEE-OS RPC memrefs, allocate a temporary buffer to copy the
data into an aligned memory.
Many RPMB drivers implicitly expect 32bit alignment of the eMMC frame
including arm_pl180_mmci.c, sandbox_mmc.c and stm32_sdmmc2.c
Signed-off-by: Timothée Cercueil <[email protected]>
Signed-off-by: Timothée Cercueil <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]>
Diffstat (limited to 'include/stdio_dev.h')
0 files changed, 0 insertions, 0 deletions
