]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2018 14:16:06 +0000 (16:16 +0200)
commitfad45a878baae0fef3e93cb1430d84c1761d9e9b
tree9078a11d1a47315916fcb5a4ae835a97728b7572
parent1de289cd2d3515665fadeb0d2381b0a8cd9d6dcc
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: 9d83ab17f349 ("of: base: Introduce of_alias_get_alias_list() to check alias IDs")
Fixes: 6d9560f124e9 ("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