Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f94f87ab
Commit
f94f87ab
authored
Sep 22, 2015
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'irq/urgent' into irq/core
Get the urgent bugfix for aic5 as further patches depend on it.
parents
afbbd233
d32dc9aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
drivers/irqchip/irq-atmel-aic5.c
drivers/irqchip/irq-atmel-aic5.c
+16
-8
No files found.
drivers/irqchip/irq-atmel-aic5.c
View file @
f94f87ab
...
...
@@ -88,28 +88,36 @@ static void aic5_mask(struct irq_data *d)
{
struct
irq_domain
*
domain
=
d
->
domain
;
struct
irq_domain_chip_generic
*
dgc
=
domain
->
gc
;
struct
irq_chip_generic
*
gc
=
dgc
->
gc
[
0
];
struct
irq_chip_generic
*
bgc
=
dgc
->
gc
[
0
];
struct
irq_chip_generic
*
gc
=
irq_data_get_irq_chip_data
(
d
);
/* Disable interrupt on AIC5 */
irq_gc_lock
(
gc
);
/*
* Disable interrupt on AIC5. We always take the lock of the
* first irq chip as all chips share the same registers.
*/
irq_gc_lock
(
bgc
);
irq_reg_writel
(
gc
,
d
->
hwirq
,
AT91_AIC5_SSR
);
irq_reg_writel
(
gc
,
1
,
AT91_AIC5_IDCR
);
gc
->
mask_cache
&=
~
d
->
mask
;
irq_gc_unlock
(
gc
);
irq_gc_unlock
(
b
gc
);
}
static
void
aic5_unmask
(
struct
irq_data
*
d
)
{
struct
irq_domain
*
domain
=
d
->
domain
;
struct
irq_domain_chip_generic
*
dgc
=
domain
->
gc
;
struct
irq_chip_generic
*
gc
=
dgc
->
gc
[
0
];
struct
irq_chip_generic
*
bgc
=
dgc
->
gc
[
0
];
struct
irq_chip_generic
*
gc
=
irq_data_get_irq_chip_data
(
d
);
/* Enable interrupt on AIC5 */
irq_gc_lock
(
gc
);
/*
* Enable interrupt on AIC5. We always take the lock of the
* first irq chip as all chips share the same registers.
*/
irq_gc_lock
(
bgc
);
irq_reg_writel
(
gc
,
d
->
hwirq
,
AT91_AIC5_SSR
);
irq_reg_writel
(
gc
,
1
,
AT91_AIC5_IECR
);
gc
->
mask_cache
|=
d
->
mask
;
irq_gc_unlock
(
gc
);
irq_gc_unlock
(
b
gc
);
}
static
int
aic5_retrigger
(
struct
irq_data
*
d
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment