serial: max310x: Support IRQ sharing with other devices
authorJan Kundrát <jan.kundrat@cesnet.cz>
Tue, 12 Dec 2017 15:17:59 +0000 (16:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 08:59:01 +0000 (09:59 +0100)
commit78be70c8243ae6bfe8ca642dd19b2b411d4b466f
tree3daac4dec73e9712c1cbf0db4807d161a699e148
parent80313586356c8a06cc969724dea1cc58d2a04d99
serial: max310x: Support IRQ sharing with other devices

According to my chip's datasheet [1], the IRQ output is an open
collector pin which is suitable for sharing with other chips. The chip
also has a register which indicates which UART performed a change and
the driver checks that register already, so we have everything what is
needed to effectively share the IRQ GPIO.

[1] https://datasheets.maximintegrated.com/en/ds/MAX14830.pdf

Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c