]> 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)
commitb1a614789c15b9579ce73de83f3f8b4589884d54
treea5b55ada04da752a571d260c97c7ec68c4944bf3
parent90dd164050432150d2c1a437fda4f01b0f8b52cf
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