]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/mmc/mmc.c
dm: mmc: Try to honour the sequence order
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2015 12:22:49 +0000 (05:22 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:22 +0000 (19:06 -0700)
commit4a1db6d8ab4d5e4565bda079710a028ada12ddbe
tree7265e3dd7dbc4ed9505b0cd8671a87ca129728c6
parent4dc5259ac7f54f4856ee9cf5ff01cfd4f67c82a6
dm: mmc: Try to honour the sequence order

At present we add driver-model MMC devices in the order we find them. The
'alias' order is not honoured.

It is difficult to fix this for the case where we have holes in the
sequence. But for the common case where the devices are numbered from 0
without any gaps, we can add the devices to the internal data structures
in this order.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mmc/mmc.c