Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280423
b: refs/heads/master
c: 0f966d7
h: refs/heads/master
i:
  280421: 11f135c
  280419: 6dc7a21
  280415: 2fdf9d6
v: v3
  • Loading branch information
Rafael J. Wysocki committed Dec 25, 2011
1 parent 4bb8404 commit 35c0e7f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7dadb37931a6ffa2aa6b443188299166dc5e638
refs/heads/master: 0f966d74cf77a9140a025464a287e1d2fee8a1fc
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-shmobile/intc-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ static struct resource intcs_resources[] __initdata = {
static struct intc_desc intcs_desc __initdata = {
.name = "sh7372-intcs",
.force_enable = ENABLED_INTCS,
.skip_syscore_suspend = true,
.resource = intcs_resources,
.num_resources = ARRAY_SIZE(intcs_resources),
.hw = INTC_HW_DESC(intcs_vectors, intcs_groups, intcs_mask_registers,
Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/sh/intc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ int __init register_intc_controller(struct intc_desc *desc)
if (desc->force_enable)
intc_enable_disable_enum(desc, d, desc->force_enable, 1);

d->skip_suspend = desc->skip_syscore_suspend;

nr_intc_controllers++;

return 0;
Expand Down Expand Up @@ -386,6 +388,9 @@ static int intc_suspend(void)
list_for_each_entry(d, &intc_list, list) {
int irq;

if (d->skip_suspend)
continue;

/* enable wakeup irqs belonging to this intc controller */
for_each_active_irq(irq) {
struct irq_data *data;
Expand All @@ -409,6 +414,9 @@ static void intc_resume(void)
list_for_each_entry(d, &intc_list, list) {
int irq;

if (d->skip_suspend)
continue;

for_each_active_irq(irq) {
struct irq_data *data;
struct irq_chip *chip;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/sh/intc/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ struct intc_desc_int {
struct intc_window *window;
unsigned int nr_windows;
struct irq_chip chip;
bool skip_suspend;
};


Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/sh_intc.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ struct intc_desc {
unsigned int num_resources;
intc_enum force_enable;
intc_enum force_disable;
bool skip_syscore_suspend;
struct intc_hw_desc hw;
};

Expand Down

0 comments on commit 35c0e7f

Please sign in to comment.