[U-Boot] config: enable CONFIG_API in distro config

Rob Herring robherring2 at gmail.com
Fri Apr 18 18:42:37 CEST 2014


On Fri, Apr 18, 2014 at 10:56 AM, Tom Rini <trini at ti.com> wrote:
> On Fri, Apr 18, 2014 at 08:44:49AM -0700, Tom Warren wrote:
>
>> If Rob broke it, Rob should fix it.
>
> Well, it's non-obvious system details, in some cases.  I can guess at
> CONFIG_SYS_MMC_MAX_DEVICE for Tegra for example, but there was some
> other breakage wrt lcd things.

This config option is to set max_dev in api_storage.c. IMHO, the use
of max_dev is a bit pointless. The get_dev function will return NULL
when there are no more devices. My plan to fix is by removing max_dev
usage altogether.

There also appears to be a bug in that more than 1 device of a given
type will never be enumerated. The problem is in dev_stor_get. When
first is set, then *more is always returned as 0.

Rob


More information about the U-Boot mailing list