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
6b327a02
Commit
6b327a02
authored
Oct 31, 2013
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-linus' into next
parents
f8d9f628
600d5258
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
20 deletions
+23
-20
drivers/dma/imx-dma.c
drivers/dma/imx-dma.c
+23
-17
drivers/dma/pl330.c
drivers/dma/pl330.c
+0
-3
No files found.
drivers/dma/imx-dma.c
View file @
6b327a02
...
@@ -572,9 +572,11 @@ static int imxdma_xfer_desc(struct imxdma_desc *d)
...
@@ -572,9 +572,11 @@ static int imxdma_xfer_desc(struct imxdma_desc *d)
imx_dmav1_writel
(
imxdma
,
d
->
len
,
DMA_CNTR
(
imxdmac
->
channel
));
imx_dmav1_writel
(
imxdma
,
d
->
len
,
DMA_CNTR
(
imxdmac
->
channel
));
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d dest=0x%08x src=0x%08x "
dev_dbg
(
imxdma
->
dev
,
"dma_length=%d
\n
"
,
__func__
,
imxdmac
->
channel
,
"%s channel: %d dest=0x%08llx src=0x%08llx dma_length=%zu
\n
"
,
d
->
dest
,
d
->
src
,
d
->
len
);
__func__
,
imxdmac
->
channel
,
(
unsigned
long
long
)
d
->
dest
,
(
unsigned
long
long
)
d
->
src
,
d
->
len
);
break
;
break
;
/* Cyclic transfer is the same as slave_sg with special sg configuration. */
/* Cyclic transfer is the same as slave_sg with special sg configuration. */
...
@@ -586,20 +588,22 @@ static int imxdma_xfer_desc(struct imxdma_desc *d)
...
@@ -586,20 +588,22 @@ static int imxdma_xfer_desc(struct imxdma_desc *d)
imx_dmav1_writel
(
imxdma
,
imxdmac
->
ccr_from_device
,
imx_dmav1_writel
(
imxdma
,
imxdmac
->
ccr_from_device
,
DMA_CCR
(
imxdmac
->
channel
));
DMA_CCR
(
imxdmac
->
channel
));
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d sg=%p sgcount=%d "
dev_dbg
(
imxdma
->
dev
,
"total length=%d dev_addr=0x%08x (dev2mem)
\n
"
,
"%s channel: %d sg=%p sgcount=%d total length=%zu dev_addr=0x%08llx (dev2mem)
\n
"
,
__func__
,
imxdmac
->
channel
,
d
->
sg
,
d
->
sgcount
,
__func__
,
imxdmac
->
channel
,
d
->
len
,
imxdmac
->
per_address
);
d
->
sg
,
d
->
sgcount
,
d
->
len
,
(
unsigned
long
long
)
imxdmac
->
per_address
);
}
else
if
(
d
->
direction
==
DMA_MEM_TO_DEV
)
{
}
else
if
(
d
->
direction
==
DMA_MEM_TO_DEV
)
{
imx_dmav1_writel
(
imxdma
,
imxdmac
->
per_address
,
imx_dmav1_writel
(
imxdma
,
imxdmac
->
per_address
,
DMA_DAR
(
imxdmac
->
channel
));
DMA_DAR
(
imxdmac
->
channel
));
imx_dmav1_writel
(
imxdma
,
imxdmac
->
ccr_to_device
,
imx_dmav1_writel
(
imxdma
,
imxdmac
->
ccr_to_device
,
DMA_CCR
(
imxdmac
->
channel
));
DMA_CCR
(
imxdmac
->
channel
));
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d sg=%p sgcount=%d "
dev_dbg
(
imxdma
->
dev
,
"total length=%d dev_addr=0x%08x (mem2dev)
\n
"
,
"%s channel: %d sg=%p sgcount=%d total length=%zu dev_addr=0x%08llx (mem2dev)
\n
"
,
__func__
,
imxdmac
->
channel
,
d
->
sg
,
d
->
sgcount
,
__func__
,
imxdmac
->
channel
,
d
->
len
,
imxdmac
->
per_address
);
d
->
sg
,
d
->
sgcount
,
d
->
len
,
(
unsigned
long
long
)
imxdmac
->
per_address
);
}
else
{
}
else
{
dev_err
(
imxdma
->
dev
,
"%s channel: %d bad dma mode
\n
"
,
dev_err
(
imxdma
->
dev
,
"%s channel: %d bad dma mode
\n
"
,
__func__
,
imxdmac
->
channel
);
__func__
,
imxdmac
->
channel
);
...
@@ -870,7 +874,7 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic(
...
@@ -870,7 +874,7 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic(
int
i
;
int
i
;
unsigned
int
periods
=
buf_len
/
period_len
;
unsigned
int
periods
=
buf_len
/
period_len
;
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d buf_len=%
d period_len=%d
\n
"
,
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d buf_len=%
zu period_len=%zu
\n
"
,
__func__
,
imxdmac
->
channel
,
buf_len
,
period_len
);
__func__
,
imxdmac
->
channel
,
buf_len
,
period_len
);
if
(
list_empty
(
&
imxdmac
->
ld_free
)
||
if
(
list_empty
(
&
imxdmac
->
ld_free
)
||
...
@@ -926,8 +930,9 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_memcpy(
...
@@ -926,8 +930,9 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_memcpy(
struct
imxdma_engine
*
imxdma
=
imxdmac
->
imxdma
;
struct
imxdma_engine
*
imxdma
=
imxdmac
->
imxdma
;
struct
imxdma_desc
*
desc
;
struct
imxdma_desc
*
desc
;
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src=0x%x dst=0x%x len=%d
\n
"
,
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src=0x%llx dst=0x%llx len=%zu
\n
"
,
__func__
,
imxdmac
->
channel
,
src
,
dest
,
len
);
__func__
,
imxdmac
->
channel
,
(
unsigned
long
long
)
src
,
(
unsigned
long
long
)
dest
,
len
);
if
(
list_empty
(
&
imxdmac
->
ld_free
)
||
if
(
list_empty
(
&
imxdmac
->
ld_free
)
||
imxdma_chan_is_doing_cyclic
(
imxdmac
))
imxdma_chan_is_doing_cyclic
(
imxdmac
))
...
@@ -956,9 +961,10 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_interleaved(
...
@@ -956,9 +961,10 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_interleaved(
struct
imxdma_engine
*
imxdma
=
imxdmac
->
imxdma
;
struct
imxdma_engine
*
imxdma
=
imxdmac
->
imxdma
;
struct
imxdma_desc
*
desc
;
struct
imxdma_desc
*
desc
;
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src_start=0x%x dst_start=0x%x
\n
"
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src_start=0x%llx dst_start=0x%llx
\n
"
" src_sgl=%s dst_sgl=%s numf=%d frame_size=%d
\n
"
,
__func__
,
" src_sgl=%s dst_sgl=%s numf=%zu frame_size=%zu
\n
"
,
__func__
,
imxdmac
->
channel
,
xt
->
src_start
,
xt
->
dst_start
,
imxdmac
->
channel
,
(
unsigned
long
long
)
xt
->
src_start
,
(
unsigned
long
long
)
xt
->
dst_start
,
xt
->
src_sgl
?
"true"
:
"false"
,
xt
->
dst_sgl
?
"true"
:
"false"
,
xt
->
src_sgl
?
"true"
:
"false"
,
xt
->
dst_sgl
?
"true"
:
"false"
,
xt
->
numf
,
xt
->
frame_size
);
xt
->
numf
,
xt
->
frame_size
);
...
...
drivers/dma/pl330.c
View file @
6b327a02
...
@@ -3036,8 +3036,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
...
@@ -3036,8 +3036,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
return
0
;
return
0
;
probe_err3:
probe_err3:
amba_set_drvdata
(
adev
,
NULL
);
/* Idle the DMAC */
/* Idle the DMAC */
list_for_each_entry_safe
(
pch
,
_p
,
&
pdmac
->
ddma
.
channels
,
list_for_each_entry_safe
(
pch
,
_p
,
&
pdmac
->
ddma
.
channels
,
chan
.
device_node
)
{
chan
.
device_node
)
{
...
@@ -3068,7 +3066,6 @@ static int pl330_remove(struct amba_device *adev)
...
@@ -3068,7 +3066,6 @@ static int pl330_remove(struct amba_device *adev)
of_dma_controller_free
(
adev
->
dev
.
of_node
);
of_dma_controller_free
(
adev
->
dev
.
of_node
);
dma_async_device_unregister
(
&
pdmac
->
ddma
);
dma_async_device_unregister
(
&
pdmac
->
ddma
);
amba_set_drvdata
(
adev
,
NULL
);
/* Idle the DMAC */
/* Idle the DMAC */
list_for_each_entry_safe
(
pch
,
_p
,
&
pdmac
->
ddma
.
channels
,
list_for_each_entry_safe
(
pch
,
_p
,
&
pdmac
->
ddma
.
channels
,
...
...
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