]> git.baikalelectronics.ru Git - kernel.git/commit
tty/serial: at91: fix uart/usart selection for older products
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 17 Oct 2013 15:37:11 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2013 20:27:24 +0000 (13:27 -0700)
commitf22db382b4da3c844b173be632a50eabba60750b
tree6c76ee450b4531538e573a863f3137e1bdcb9470
parent2876282166d9a4ece1cbd84a3d8eab4f2a66bd50
tty/serial: at91: fix uart/usart selection for older products

Since commit 60d22f5895e989a9a1dff9249a463475031ea143 (serial: at91:
distinguish usart and uart) the older products which do not have a
name field in their register map are unable to use their serial output.
As the main console output is usually the serial interface (aka DBGU) it
is pretty unfortunate.
So, instead of failing during probe() we just silently configure the serial
peripheral as an uart. It allows us to use these serial outputs.
The proper solution is proposed in another patch.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c