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
Kirill Smelkov
linux
Commits
ddaedd1c
Commit
ddaedd1c
authored
Mar 28, 2011
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc-fsl-msi-use-irqd.patch
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
773e20d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
arch/powerpc/sysdev/fsl_msi.c
arch/powerpc/sysdev/fsl_msi.c
+11
-10
No files found.
arch/powerpc/sysdev/fsl_msi.c
View file @
ddaedd1c
...
...
@@ -183,7 +183,8 @@ static int fsl_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
static
void
fsl_msi_cascade
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
{
struct
irq_chip
*
chip
=
get_irq_desc_chip
(
desc
);
struct
irq_chip
*
chip
=
irq_desc_get_chip
(
desc
);
struct
irq_data
*
idata
=
irq_desc_get_irq_data
(
desc
);
unsigned
int
cascade_irq
;
struct
fsl_msi
*
msi_data
;
int
msir_index
=
-
1
;
...
...
@@ -198,14 +199,14 @@ static void fsl_msi_cascade(unsigned int irq, struct irq_desc *desc)
raw_spin_lock
(
&
desc
->
lock
);
if
((
msi_data
->
feature
&
FSL_PIC_IP_MASK
)
==
FSL_PIC_IP_IPIC
)
{
if
(
chip
->
irq_mask_ack
)
chip
->
irq_mask_ack
(
&
desc
->
irq_
data
);
chip
->
irq_mask_ack
(
i
data
);
else
{
chip
->
irq_mask
(
&
desc
->
irq_
data
);
chip
->
irq_ack
(
&
desc
->
irq_
data
);
chip
->
irq_mask
(
i
data
);
chip
->
irq_ack
(
i
data
);
}
}
if
(
unlikely
(
desc
->
status
&
IRQ_INPROGRESS
))
if
(
unlikely
(
irqd_irq_inprogress
(
idata
)
))
goto
unlock
;
msir_index
=
cascade_data
->
index
;
...
...
@@ -213,7 +214,7 @@ static void fsl_msi_cascade(unsigned int irq, struct irq_desc *desc)
if
(
msir_index
>=
NR_MSI_REG
)
cascade_irq
=
NO_IRQ
;
desc
->
status
|=
IRQ_INPROGRESS
;
irqd_set_chained_irq_inprogress
(
idata
)
;
switch
(
msi_data
->
feature
&
FSL_PIC_IP_MASK
)
{
case
FSL_PIC_IP_MPIC
:
msir_value
=
fsl_msi_read
(
msi_data
->
msi_regs
,
...
...
@@ -235,15 +236,15 @@ static void fsl_msi_cascade(unsigned int irq, struct irq_desc *desc)
have_shift
+=
intr_index
+
1
;
msir_value
=
msir_value
>>
(
intr_index
+
1
);
}
desc
->
status
&=
~
IRQ_INPROGRESS
;
irqd_clr_chained_irq_inprogress
(
idata
)
;
switch
(
msi_data
->
feature
&
FSL_PIC_IP_MASK
)
{
case
FSL_PIC_IP_MPIC
:
chip
->
irq_eoi
(
&
desc
->
irq_
data
);
chip
->
irq_eoi
(
i
data
);
break
;
case
FSL_PIC_IP_IPIC
:
if
(
!
(
desc
->
status
&
IRQ_DISABLED
)
&&
chip
->
irq_unmask
)
chip
->
irq_unmask
(
&
desc
->
irq_
data
);
if
(
!
irqd_irq_disabled
(
idata
)
&&
chip
->
irq_unmask
)
chip
->
irq_unmask
(
i
data
);
break
;
}
unlock:
...
...
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