]> git.baikalelectronics.ru Git - kernel.git/commit
serial: pl011: honour serial aliases in device tree
authorMatthew Leach <matthew.leach@arm.com>
Tue, 28 Aug 2012 15:41:28 +0000 (16:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 20:18:12 +0000 (13:18 -0700)
commit8b98dd4c74ef33c7979c63472d69be4ad2cc27a7
treea5b55ada04da752a571d260c97c7ec68c4944bf3
parent3a1a812cf93f8327752f5c9b42824ddada745d62
serial: pl011: honour serial aliases in device tree

If the order of UART nodes is changed in the device tree, then tty dev
devices are attached to different serial ports causing the console to
be directed to a different physical serial port. The "serial" aliases
in the device tree should prevent this.

This patch ensures that the UART driver creates tty devices that
honour these aliases if a device tree is present.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c