OSDN Git Service

serial: mvebu-uart: dissociate RX and TX interrupts
authorMiquel Raynal <miquel.raynal@free-electrons.com>
Fri, 13 Oct 2017 09:01:54 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Oct 2017 12:20:07 +0000 (14:20 +0200)
commit95f787685a224e86385545848efddb9df4393065
tree14ca2098b45556001224ee78201dcc9399c8d4fb
parent30434b0713a5f4ecf00e9ffd3d47053882b1909a
serial: mvebu-uart: dissociate RX and TX interrupts

While the standard UART port can use a single IRQ that 'sums' both RX
and TX interrupts, the extended port cannot and has to use two different
ISR, one for each direction. The standard port also has the hability
to use two separate interrupts (one for each direction).

The logic is then: either there is only one unnamed interrupt on the
standard port and this interrupt must be used for both directions
(this is legacy bindings); or all the interrupts must be described and
named 'uart-sum' (if available), 'uart-rx', 'uart-tx' and two separate
handlers for each direction will be used.

Suggested-by: Allen Yan <yanwei@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c