Skip to content
Commit a26988e8 authored by Loys Ollivier's avatar Loys Ollivier Committed by Greg Kroah-Hartman
Browse files

tty: serial: meson: if no alias specified use an available id



At probe, the uart driver tries to get an id from a device tree alias.
When no alias was specified, the driver would return an error and probing
would fail.

Providing an alias for registering a serial device should not be mandatory.
If the device tree does not specify an alias, provide an id from a reserved
range so that the probing can continue.

Suggested-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLoys Ollivier <lollivier@baylibre.com>
Reviewed-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 896efccf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment