diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-02 08:53:07 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-15 04:54:19 -0400 |
commit | d80d499ed926e70b429d309360f5910d5ad54788 (patch) | |
tree | 1251cba699201fed8eb94d7e822d64d4f8ca6359 /drivers/video/omap2/dss/dsi.c | |
parent | 773b30b22f8c5ac4ccc52775c17809cc5826cb86 (diff) |
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>
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 37226628bc0f..0a7f1a47f8e3 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -409,6 +409,9 @@ static void dsi_perf_show(const char *name) | |||
409 | 409 | ||
410 | static void print_irq_status(u32 status) | 410 | static void print_irq_status(u32 status) |
411 | { | 411 | { |
412 | if (status == 0) | ||
413 | return; | ||
414 | |||
412 | #ifndef VERBOSE_IRQ | 415 | #ifndef VERBOSE_IRQ |
413 | if ((status & ~DSI_IRQ_CHANNEL_MASK) == 0) | 416 | if ((status & ~DSI_IRQ_CHANNEL_MASK) == 0) |
414 | return; | 417 | return; |
@@ -444,6 +447,9 @@ static void print_irq_status(u32 status) | |||
444 | 447 | ||
445 | static void print_irq_status_vc(int channel, u32 status) | 448 | static void print_irq_status_vc(int channel, u32 status) |
446 | { | 449 | { |
450 | if (status == 0) | ||
451 | return; | ||
452 | |||
447 | #ifndef VERBOSE_IRQ | 453 | #ifndef VERBOSE_IRQ |
448 | if ((status & ~DSI_VC_IRQ_PACKET_SENT) == 0) | 454 | if ((status & ~DSI_VC_IRQ_PACKET_SENT) == 0) |
449 | return; | 455 | return; |
@@ -470,6 +476,9 @@ static void print_irq_status_vc(int channel, u32 status) | |||
470 | 476 | ||
471 | static void print_irq_status_cio(u32 status) | 477 | static void print_irq_status_cio(u32 status) |
472 | { | 478 | { |
479 | if (status == 0) | ||
480 | return; | ||
481 | |||
473 | printk(KERN_DEBUG "DSI CIO IRQ 0x%x: ", status); | 482 | printk(KERN_DEBUG "DSI CIO IRQ 0x%x: ", status); |
474 | 483 | ||
475 | #define PIS(x) \ | 484 | #define PIS(x) \ |