From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Sat, 2 May 2020 11:08:37 +0200 (CEST) Subject: [PATCH 1/5] imx: spl: return boot mode for asked MMC device in spl_mmc_boot_mode() In-Reply-To: <20200423110753.51231-2-hws@denx.de> Message-ID: <20200502090837.5DC4581D30@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > From: Anatolij Gustschin > Boards may extend or re-define the boot list in their board_boot_order() > function by modifying spl_boot_list. E.g. a board might boot SPL from a > slow SPI NOR flash and then load the U-Boot from an eMMC or SD-card. > Or it might use additional MMC boot device in spl_boot_list for cases > when the image in SPI NOR flash is not found, so it could fall back to > eMMC, SD-card or another boot device. > Getting the MMC boot mode in spl_mmc will fail when we are trying to > boot from an MMC device in the spl_boot_list and the original board > boot mode (as returned by spl_boot_device()) is not an MMC boot mode. > Fix it by checking the asked MMC boot device from the spl_mmc_boot_mode() > argument. > Signed-off-by: Anatolij Gustschin Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================