aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serial_sci.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2011-06-28 15:25:36 +0900
committerPaul Mundt <lethal@linux-sh.org>2011-06-28 15:25:36 +0900
commit9174fc8f111982e024a00512c521ad8f1056fccb (patch)
treee8cd3f0bea432af9d970152b451eb96448000157 /include/linux/serial_sci.h
parent23241d43eac88f63a7f0bf4d5c12bbc496651585 (diff)
downloadkernel_goldelico_gta04-9174fc8f111982e024a00512c521ad8f1056fccb.zip
kernel_goldelico_gta04-9174fc8f111982e024a00512c521ad8f1056fccb.tar.gz
kernel_goldelico_gta04-9174fc8f111982e024a00512c521ad8f1056fccb.tar.bz2
serial: sh-sci: Fix up pretty name printing for port IRQs.
Presently these were all using the same static string with no regard to dev_name() and the like. This implements a bit of rework to name the IRQ dynamically, as it should have been doing all along anyways. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/serial_sci.h')
-rw-r--r--include/linux/serial_sci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h
index 4ca130a..8bffe9a 100644
--- a/include/linux/serial_sci.h
+++ b/include/linux/serial_sci.h
@@ -56,6 +56,8 @@ enum {
SCIx_TXI_IRQ,
SCIx_BRI_IRQ,
SCIx_NR_IRQS,
+
+ SCIx_MUX_IRQ = SCIx_NR_IRQS, /* special case */
};
enum {
@@ -82,6 +84,11 @@ enum {
[SCIx_BRI_IRQ] = (irq), \
}
+#define SCIx_IRQ_IS_MUXED(port) \
+ ((port)->cfg->irqs[SCIx_ERI_IRQ] == \
+ (port)->cfg->irqs[SCIx_RXI_IRQ]) || \
+ ((port)->cfg->irqs[SCIx_ERI_IRQ] && \
+ !(port)->cfg->irqs[SCIx_RXI_IRQ])
/*
* SCI register subset common for all port types.
* Not all registers will exist on all parts.