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)
commit608b0c4ad4e5ec0c5d2c60276f19c3651d3d3cab
tree6c48149de1ca4dc49ac5c051d693ebc902a461fc
parentb442e16b876f92af82768d6ec86fe71ecea01166
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