
17 Jan
2018
17 Jan
'18
8:34 p.m.
On 17 January 2018 at 00:54, Alexander Graf agraf@suse.de wrote:
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
v1 -> v2:
- Make search logic easier to follow
drivers/serial/serial-uclass.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org
The fallback logic is getting more complicated. How come the DT does not specify the correct console?
Regards, Simon