]> git.baikalelectronics.ru Git - uboot.git/commit
env: mmc: correct the offset returned by mmc_offset_try_partition
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 15 Jun 2020 08:38:56 +0000 (10:38 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 26 Jul 2020 18:35:30 +0000 (14:35 -0400)
commit884756572623be1027e3b46e74eb3754b2bb4086
tree8ec03be51f81fafc40ff9e93deae58c16bd980e4
parent738d6fed68e5ee0af847639949ef5f8237a9b063
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: Patrick Delaunay <patrick.delaunay@st.com>
env/mmc.c