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)
commitcf0082559698765a96f96cb3811db6a91c02ca82
tree906390d6edd026bbdd2133653ec71f43859983fe
parenta85121392015e30bd12302ea2986b7ca662d198d
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