]> git.baikalelectronics.ru Git - uboot.git/commit
spl: mmc: Fix spl_mmc_get_uboot_raw_sector() implementation
authorFaiz Abbas <faiz_abbas@ti.com>
Wed, 26 Feb 2020 08:14:35 +0000 (13:44 +0530)
committerPeng Fan <peng.fan@nxp.com>
Mon, 9 Mar 2020 00:33:16 +0000 (08:33 +0800)
commit1c4805b6fa4d86e2a6804c0ab515e25c79537724
tree906390d6edd026bbdd2133653ec71f43859983fe
parent8ce44e46dc9a83e343da2169d33c9877fd625da1
spl: mmc: Fix spl_mmc_get_uboot_raw_sector() implementation

The call to spl_mmc_get_uboot_raw_sector() completely ignores and
overwrites the raw_sect value passed from the caller of spl_mmc_load().

Fix this by passing raw_sect to the function and returning the same
value in the default case.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/mach-imx/imx8/image.c
common/spl/spl_mmc.c