Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
5ea9c88f
Commit
5ea9c88f
authored
Sep 26, 2006
by
Juha Yrjola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP2: Add DMA IRQ sanity checks
Signed-off-by:
Juha Yrjola
<
juha.yrjola@solidboot.com
>
parent
de60edec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/dma.c
+18
-7
No files found.
arch/arm/plat-omap/dma.c
View file @
5ea9c88f
...
@@ -930,10 +930,17 @@ static int omap2_dma_handle_ch(int ch)
...
@@ -930,10 +930,17 @@ static int omap2_dma_handle_ch(int ch)
u32
status
=
OMAP_DMA_CSR_REG
(
ch
);
u32
status
=
OMAP_DMA_CSR_REG
(
ch
);
u32
val
;
u32
val
;
if
(
!
status
)
if
(
!
status
)
{
if
(
printk_ratelimit
())
printk
(
KERN_WARNING
"Spurious DMA IRQ for lch %d
\n
"
,
ch
);
return
0
;
return
0
;
if
(
unlikely
(
dma_chan
[
ch
].
dev_id
==
-
1
))
}
if
(
unlikely
(
dma_chan
[
ch
].
dev_id
==
-
1
))
{
if
(
printk_ratelimit
())
printk
(
KERN_WARNING
"IRQ %04x for non-allocated DMA"
"channel %d
\n
"
,
status
,
ch
);
return
0
;
return
0
;
}
if
(
unlikely
(
status
&
OMAP_DMA_DROP_IRQ
))
if
(
unlikely
(
status
&
OMAP_DMA_DROP_IRQ
))
printk
(
KERN_INFO
printk
(
KERN_INFO
"DMA synchronization event drop occurred with device "
"DMA synchronization event drop occurred with device "
...
@@ -969,11 +976,15 @@ static irqreturn_t omap2_dma_irq_handler(int irq, void *dev_id,
...
@@ -969,11 +976,15 @@ static irqreturn_t omap2_dma_irq_handler(int irq, void *dev_id,
int
i
;
int
i
;
val
=
omap_readl
(
OMAP_DMA4_IRQSTATUS_L0
);
val
=
omap_readl
(
OMAP_DMA4_IRQSTATUS_L0
);
if
(
val
==
0
)
{
for
(
i
=
1
;
i
<=
OMAP_LOGICAL_DMA_CH_COUNT
;
i
++
)
{
if
(
printk_ratelimit
())
int
active
=
val
&
(
1
<<
(
i
-
1
));
printk
(
KERN_WARNING
"Spurious DMA IRQ
\n
"
);
if
(
active
)
return
IRQ_HANDLED
;
omap2_dma_handle_ch
(
i
-
1
);
}
for
(
i
=
0
;
i
<
OMAP_LOGICAL_DMA_CH_COUNT
&&
val
!=
0
;
i
++
)
{
if
(
val
&
1
)
omap2_dma_handle_ch
(
i
);
val
>>=
1
;
}
}
return
IRQ_HANDLED
;
return
IRQ_HANDLED
;
...
...
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