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
ba8b6cc0
Commit
ba8b6cc0
authored
May 17, 2016
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/pxa' into for-linus
parents
4dc50060
4e0def88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
drivers/dma/pxa_dma.c
drivers/dma/pxa_dma.c
+14
-2
No files found.
drivers/dma/pxa_dma.c
View file @
ba8b6cc0
...
...
@@ -117,6 +117,7 @@ struct pxad_chan {
/* protected by vc->lock */
struct
pxad_phy
*
phy
;
struct
dma_pool
*
desc_pool
;
/* Descriptors pool */
dma_cookie_t
bus_error
;
};
struct
pxad_device
{
...
...
@@ -563,6 +564,7 @@ static void pxad_launch_chan(struct pxad_chan *chan,
return
;
}
}
chan
->
bus_error
=
0
;
/*
* Program the descriptor's address into the DMA controller,
...
...
@@ -666,6 +668,7 @@ static irqreturn_t pxad_chan_handler(int irq, void *dev_id)
struct
virt_dma_desc
*
vd
,
*
tmp
;
unsigned
int
dcsr
;
unsigned
long
flags
;
dma_cookie_t
last_started
=
0
;
BUG_ON
(
!
chan
);
...
...
@@ -678,6 +681,7 @@ static irqreturn_t pxad_chan_handler(int irq, void *dev_id)
dev_dbg
(
&
chan
->
vc
.
chan
.
dev
->
device
,
"%s(): checking txd %p[%x]: completed=%d
\n
"
,
__func__
,
vd
,
vd
->
tx
.
cookie
,
is_desc_completed
(
vd
));
last_started
=
vd
->
tx
.
cookie
;
if
(
to_pxad_sw_desc
(
vd
)
->
cyclic
)
{
vchan_cyclic_callback
(
vd
);
break
;
...
...
@@ -690,7 +694,12 @@ static irqreturn_t pxad_chan_handler(int irq, void *dev_id)
}
}
if
(
dcsr
&
PXA_DCSR_STOPSTATE
)
{
if
(
dcsr
&
PXA_DCSR_BUSERR
)
{
chan
->
bus_error
=
last_started
;
phy_disable
(
phy
);
}
if
(
!
chan
->
bus_error
&&
dcsr
&
PXA_DCSR_STOPSTATE
)
{
dev_dbg
(
&
chan
->
vc
.
chan
.
dev
->
device
,
"%s(): channel stopped, submitted_empty=%d issued_empty=%d"
,
__func__
,
...
...
@@ -1249,6 +1258,9 @@ static enum dma_status pxad_tx_status(struct dma_chan *dchan,
struct
pxad_chan
*
chan
=
to_pxad_chan
(
dchan
);
enum
dma_status
ret
;
if
(
cookie
==
chan
->
bus_error
)
return
DMA_ERROR
;
ret
=
dma_cookie_status
(
dchan
,
cookie
,
txstate
);
if
(
likely
(
txstate
&&
(
ret
!=
DMA_ERROR
)))
dma_set_residue
(
txstate
,
pxad_residue
(
chan
,
cookie
));
...
...
@@ -1321,7 +1333,7 @@ static int pxad_init_phys(struct platform_device *op,
return
0
;
}
static
const
struct
of_device_id
const
pxad_dt_ids
[]
=
{
static
const
struct
of_device_id
pxad_dt_ids
[]
=
{
{
.
compatible
=
"marvell,pdma-1.0"
,
},
{}
};
...
...
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