MA-15860 Get and switch the target dev in fastboot erase
authorJi Luo <ji.luo@nxp.com>
Wed, 20 Nov 2019 05:53:54 +0000 (13:53 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:17 +0000 (09:49 +0800)
commitab2a2323a22e7692126f21cd873b7bcf3c4cc520
treed6c9a829cea8a5b2ebae56d6af6b44fe102038be
parente42f06dbc70934ff9f535104f7322b9ac36491ce
MA-15860 Get and switch the target dev in fastboot erase

Target mmc dev is not properly switched when the device enters
fastboot mode via uuu "-i" parameter, which causes "erase"
operation doesn't work.

Get and switch the target mmc dev every time before erase operations
happen.

Test: "fastboot erase boot_a" in uuu fastboot mode.

Change-Id: I4822d2b4ecfd2d874dfbe7474d6824b8fc3a7903
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit 46161b62c341139dcdbb13e00634ae8ae903c5da)
(cherry picked from commit b66d13c7ecd1c1e44dd9edb6c0d5566b4f738bbe)
drivers/fastboot/fb_fsl/fb_fsl_dev.c