Last active
August 29, 2015 13:57
-
-
Save 173210/9581190 to your computer and use it in GitHub Desktop.
Logging for FeliCa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c | |
index 1bafaf6..afe04aa 100644 | |
--- a/kernel/irq/chip.c | |
+++ b/kernel/irq/chip.c | |
@@ -128,6 +128,7 @@ int irq_startup(struct irq_desc *desc, bool resend) | |
irq_state_clr_disabled(desc); | |
desc->depth = 0; | |
+ printk("%s(%d): (struct irq_desc *)0x%X->depth = %d\n", | |
+ current->comm, current->pid, (int)desc, desc->depth); | |
if (desc->irq_data.chip->irq_startup) { | |
ret = desc->irq_data.chip->irq_startup(&desc->irq_data); | |
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c | |
index c3b9c13..d940d9e 100644 | |
--- a/kernel/irq/manage.c | |
+++ b/kernel/irq/manage.c | |
@@ -356,6 +356,7 @@ void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume) | |
} | |
default: | |
desc->depth--; | |
+ printk("%s(%d): (struct irq_desc *)0x%X->depth = %d\n", | |
+ current->comm, current->pid, (int)desc, desc->depth); | |
} | |
} | |
@@ -402,9 +403,10 @@ int irq_set_irq_wake(unsigned int irq, unsigned int on) | |
if (on) { | |
if (desc->wake_depth++ == 0) { | |
ret = set_irq_wake_real(irq, on); | |
- if (ret) | |
+ if (ret) { | |
desc->wake_depth = 0; | |
- else | |
+ printk("%s(%d): (struct irq_desc *)0x%X->depth = %d\n", | |
+ current->comm, current->pid, (int)desc, desc->depth); | |
+ } else | |
irqd_set(&desc->irq_data, IRQD_WAKEUP_STATE); | |
} | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment