Re: [U-Boot] [PATCH v2 06/22] stdio: Correct numbering logic in stdio_probe_device()

2016-11-25 Thread Simon Glass
On 13 November 2016 at 14:22, Simon Glass wrote: > The current code assumes that the devices are ordered corresponding to > their alias value. But (for example) video1 can come before video0 in the > device tree. > > Correct this, by always looking for device 0 first. After

[U-Boot] [PATCH v2 06/22] stdio: Correct numbering logic in stdio_probe_device()

2016-11-13 Thread Simon Glass
The current code assumes that the devices are ordered corresponding to their alias value. But (for example) video1 can come before video0 in the device tree. Correct this, by always looking for device 0 first. After that we can fall back to finding the first available device. Signed-off-by: