diff options
| author | Peng Fan <[email protected]> | 2026-07-13 21:32:55 +0800 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-07-29 11:15:55 +0800 |
| commit | 648263b69c329d157d2a28f6b74172640e611533 (patch) | |
| tree | ba78160d28f3654a53bd995727b102141d163044 /include/android_bootloader_message.h | |
| parent | b95ce3f0945cac05c09a1837ea2401df78d766d4 (diff) | |
mmc: fix mmc_bwrite() ignoring host get_b_max() callback
mmc_bwrite() uses mmc->cfg->b_max directly to limit per-transfer block
count. The read path (mmc_bread()) correctly calls mmc_get_b_max()
which dispatches to the host driver get_b_max() callback. This callback
allows host drivers to enforce DMA boundary constraints based on the
buffer address.
Fix mmc_bwrite() to use mmc_get_b_max() to match the read path. This
requires removing the static qualifier from the non-DM mmc_get_b_max()
and adding its declaration to mmc_private.h.
Reviewed-by: Tanmay Kathpalia <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include/android_bootloader_message.h')
0 files changed, 0 insertions, 0 deletions
