]> git.baikalelectronics.ru Git - uboot.git/commit
serial: Use next serial device if probing fails
authorAlexander Graf <agraf@suse.de>
Thu, 25 Jan 2018 11:05:42 +0000 (12:05 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 17:27:33 +0000 (12:27 -0500)
commita53b42c1fe4bb8829ce9181d0ad218f319385cc1
tree6c48149de1ca4dc49ac5c051d693ebc902a461fc
parentc7a5098dc9801ac69525e1f789ff7b7a895be812
serial: Use next serial device if probing fails

Currently our serial device search chokes on the fact that the serial
probe function could fail. If it does, instead of searching for the next
usable serial device, it just quits.

This patch changes the fallback logic so that even when a serial device
was not probed correctly, we just try the next ones until we find one that
works.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial-uclass.c