]> git.ipfire.org Git - people/ms/u-boot.git/commit
api_storage: Fix non-first storage device enumeration
authorAndreas Färber <afaerber@suse.de>
Mon, 14 Sep 2015 10:21:34 +0000 (12:21 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 15 Sep 2015 19:05:23 +0000 (15:05 -0400)
commitce2a07b77ceae8ed4b95a1c0165c6e179252ffee
treea065562ad3dd1db044c81ce3b7347b3a4628e2c6
parent86dc8b14f9e372cbcd04e55ca9f8dc8c62329f8f
api_storage: Fix non-first storage device enumeration

When enabling CONFIG_API and chain-loading GRUB2 on jetson-tk1, only the
eMMC would show up as (hd0), but not the SD card, leading to GRUB not
finding its configuration and modules, falling back to a rescue shell.

This is because enum_ended would get set for !more after returning a
cookie for the first MMC device in group 3.

Fix this by properly setting the "more" argument also in the case of the
first storage device of a group.

Signed-off-by: Andreas Färber <afaerber@suse.de>
api/api_storage.c