u-boot/env
Patrick Delaunay 76b640c3f2 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>
2020-07-26 14:35:30 -04:00
..
attr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
callback.c make env_entry::callback conditional on !CONFIG_SPL_BUILD 2020-04-24 10:09:59 -04:00
common.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
eeprom.c common: Move old EEPROM functions into a new header 2019-12-02 18:25:25 -05:00
embedded.c env: Finish migration of common ENV options 2019-11-20 18:32:09 -05:00
env.c env: add failing trace in env_save 2020-07-26 14:35:30 -04:00
ext4.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
fat.c env/fat.c: allow loading from a FAT partition on the MMC boot device 2020-07-26 14:35:12 -04:00
flags.c make env_entry::callback conditional on !CONFIG_SPL_BUILD 2020-04-24 10:09:59 -04:00
flash.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Kconfig env/fat.c: allow loading from a FAT partition on the MMC boot device 2020-07-26 14:35:12 -04:00
Makefile env: remove callback.o for an SPL build 2020-04-24 10:09:59 -04:00
mmc.c env: mmc: correct the offset returned by mmc_offset_try_partition 2020-07-26 14:35:30 -04:00
nand.c crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
nowhere.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
nvram.c env: make file-scope env_ptr variables static 2020-04-17 12:29:43 -04:00
onenand.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
remote.c env: make file-scope env_ptr variables static 2020-04-17 12:29:43 -04:00
sata.c env: Remove useless CONFIG_ENV_SIZE_REDUND and fix ENV_IS_REDUND check 2019-11-20 18:31:24 -05:00
sf.c spi: Convert CONFIG_DM_SPI* to CONFIG_$(SPL_TPL_)DM_SPI* 2020-06-29 13:34:43 -04:00
ubi.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00