]> git.ipfire.org Git - people/ms/u-boot.git/commit
api: storage: Test all block device in dev_stor_get
authorEmmanuel Vadot <manu@bidouilliste.com>
Thu, 5 Jan 2017 05:40:21 +0000 (06:40 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2017 20:37:58 +0000 (15:37 -0500)
commitd3e8f63026fa37dc09dcfd803df81e5452f87df9
tree809b6a2f91f30e8d1b54d8a156c3aaf7baabffd5
parent6215bd4c1fd6bce95072ad123cf1e4af94ab44e2
api: storage: Test all block device in dev_stor_get

In a config with one MMC at device id '1' and no MMC at device id '0'
(a BeagleBone Black with no sd inserted for example), the current code
will first test to access the MMC 0 (sd port), seeing that no device is
present it will simply return that no more device are present for this
class.
This patch fixes this by testing all devices for each class.

Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
api/api_storage.c