]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
of: base: Change logic in of_alias_get_alias_list()
authorMichal Simek <michal.simek@xilinx.com>
Fri, 12 Oct 2018 05:43:11 +0000 (07:43 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 9 Jan 2019 08:16:07 +0000 (09:16 +0100)
commite03af1c718b703ff6f4d9c07c3e1fc1484c3e460
tree681e099ff678bd847801056d12a3e72a35a51efb
parentc2b209f5e2d11b1cd966cce5e757edbc470580b3
of: base: Change logic in of_alias_get_alias_list()

Check compatible string first before setting up bit in bitmap to also
cover cases that allocated bitfield is not big enough.
Show warning about it but let driver to continue to work with allocated
bitfield to keep at least some devices (included console which
is commonly close to serial0) to work.

Fixes: b1078c355d76 ("of: base: Introduce of_alias_get_alias_list() to check alias IDs")
Fixes: ae1cca3fa347 ("serial: uartps: Change uart ID port allocation")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/base.c
drivers/tty/serial/xilinx_uartps.c