]> git.baikalelectronics.ru Git - kernel.git/commit
MN10300: fix debug polling in ttySM driver
authorMark Salter <msalter@redhat.com>
Wed, 12 Dec 2012 15:36:39 +0000 (15:36 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 12 Dec 2012 15:46:14 +0000 (15:46 +0000)
commit44d993ff1aeb51c64359ab53247a2f9f9d0eec46
tree871be10d0b14cf2a48039647fbf39ca7609e49fd
parent2ba2c5a6ba6ad2d6059e7d063693257a0c0732a3
MN10300: fix debug polling in ttySM driver

The debug polling interface for the SoC serial ports did not work in the case
where the serial ports were not also used as a console. In that case, the
uart driver startup function will not be called so tx and rx would not be
enabled in the hardware control register. Also, vdma interrupts would not be
enabled which the poll_get_char function relied on. This patch makes sure that
the rx and tx enables are set as a consequence of the uart set_termios call
which is the only initialization done for the debug polling interface. Also,
the poll_get_char now handles the case where vdma interrupts are not enabled.

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
arch/mn10300/kernel/mn10300-serial.c