Skip to content
Commit 76b640c3 authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

env: mmc: correct the offset returned by mmc_offset_try_partition



The output of the function mmc_offset_try_partition must be a
byte offset in mmc and not a multiple of blksz.

This function is used in mmc_offset(), called by mmc_get_env_addr()
and the offset is used in write_env(), erase_env() and read_env().

In these function, blk_start = offset / mmc->read_bl_len
or /write_bl_len so this offset is not a multiple of blksz.

Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
parent 2b2f7275
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment