Переглянути джерело

OMAP: DSS2: DSI: fix IRQ debug prints

print_irq_status functions can be called with empty irq status when full
irq debugging is enabled. This patch makes print_irq_status functions
return immediately when given an empty irq status to lessen the debug
spam slightly.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tomi Valkeinen 14 роки тому
батько
коміт
d80d499ed9
1 змінених файлів з 9 додано та 0 видалено
  1. 9 0
      drivers/video/omap2/dss/dsi.c

+ 9 - 0
drivers/video/omap2/dss/dsi.c

@@ -409,6 +409,9 @@ static void dsi_perf_show(const char *name)
 
 
 static void print_irq_status(u32 status)
 static void print_irq_status(u32 status)
 {
 {
+	if (status == 0)
+		return;
+
 #ifndef VERBOSE_IRQ
 #ifndef VERBOSE_IRQ
 	if ((status & ~DSI_IRQ_CHANNEL_MASK) == 0)
 	if ((status & ~DSI_IRQ_CHANNEL_MASK) == 0)
 		return;
 		return;
@@ -444,6 +447,9 @@ static void print_irq_status(u32 status)
 
 
 static void print_irq_status_vc(int channel, u32 status)
 static void print_irq_status_vc(int channel, u32 status)
 {
 {
+	if (status == 0)
+		return;
+
 #ifndef VERBOSE_IRQ
 #ifndef VERBOSE_IRQ
 	if ((status & ~DSI_VC_IRQ_PACKET_SENT) == 0)
 	if ((status & ~DSI_VC_IRQ_PACKET_SENT) == 0)
 		return;
 		return;
@@ -470,6 +476,9 @@ static void print_irq_status_vc(int channel, u32 status)
 
 
 static void print_irq_status_cio(u32 status)
 static void print_irq_status_cio(u32 status)
 {
 {
+	if (status == 0)
+		return;
+
 	printk(KERN_DEBUG "DSI CIO IRQ 0x%x: ", status);
 	printk(KERN_DEBUG "DSI CIO IRQ 0x%x: ", status);
 
 
 #define PIS(x) \
 #define PIS(x) \