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
ba793233
Commit
ba793233
authored
Jan 31, 2012
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
0bbc1413
a5044cdd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac.c
+2
-2
drivers/dma/at_hdmac_regs.h
drivers/dma/at_hdmac_regs.h
+8
-9
drivers/dma/dmatest.c
drivers/dma/dmatest.c
+1
-1
No files found.
drivers/dma/at_hdmac.c
View file @
ba793233
...
...
@@ -1343,7 +1343,7 @@ static int __init at_dma_probe(struct platform_device *pdev)
tasklet_init
(
&
atchan
->
tasklet
,
atc_tasklet
,
(
unsigned
long
)
atchan
);
atc_enable_
irq
(
atchan
);
atc_enable_
chan_irq
(
atdma
,
i
);
}
/* set base routines */
...
...
@@ -1410,7 +1410,7 @@ static int __exit at_dma_remove(struct platform_device *pdev)
struct
at_dma_chan
*
atchan
=
to_at_dma_chan
(
chan
);
/* Disable interrupts */
atc_disable_
irq
(
atchan
);
atc_disable_
chan_irq
(
atdma
,
chan
->
chan_id
);
tasklet_disable
(
&
atchan
->
tasklet
);
tasklet_kill
(
&
atchan
->
tasklet
);
...
...
drivers/dma/at_hdmac_regs.h
View file @
ba793233
...
...
@@ -327,28 +327,27 @@ static void atc_dump_lli(struct at_dma_chan *atchan, struct at_lli *lli)
}
static
void
atc_setup_irq
(
struct
at_dma
_chan
*
atchan
,
int
on
)
static
void
atc_setup_irq
(
struct
at_dma
*
atdma
,
int
chan_id
,
int
on
)
{
struct
at_dma
*
atdma
=
to_at_dma
(
atchan
->
chan_common
.
device
);
u32
ebci
;
/* enable interrupts on buffer transfer completion & error */
ebci
=
AT_DMA_BTC
(
atchan
->
chan_common
.
chan_id
)
|
AT_DMA_ERR
(
atchan
->
chan_common
.
chan_id
);
ebci
=
AT_DMA_BTC
(
chan_id
)
|
AT_DMA_ERR
(
chan_id
);
if
(
on
)
dma_writel
(
atdma
,
EBCIER
,
ebci
);
else
dma_writel
(
atdma
,
EBCIDR
,
ebci
);
}
static
inline
void
atc_enable_irq
(
struct
at_dma_chan
*
atchan
)
static
void
atc_enable_chan_irq
(
struct
at_dma
*
atdma
,
int
chan_id
)
{
atc_setup_irq
(
at
chan
,
1
);
atc_setup_irq
(
at
dma
,
chan_id
,
1
);
}
static
inline
void
atc_disable_irq
(
struct
at_dma_chan
*
atchan
)
static
void
atc_disable_chan_irq
(
struct
at_dma
*
atdma
,
int
chan_id
)
{
atc_setup_irq
(
at
chan
,
0
);
atc_setup_irq
(
at
dma
,
chan_id
,
0
);
}
...
...
drivers/dma/dmatest.c
View file @
ba793233
...
...
@@ -599,7 +599,7 @@ static int dmatest_add_channel(struct dma_chan *chan)
}
if
(
dma_has_cap
(
DMA_PQ
,
dma_dev
->
cap_mask
))
{
cnt
=
dmatest_add_threads
(
dtc
,
DMA_PQ
);
thread_count
+=
cnt
>
0
?:
0
;
thread_count
+=
cnt
>
0
?
cnt
:
0
;
}
pr_info
(
"dmatest: Started %u threads using %s
\n
"
,
...
...
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