Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
6b327a02
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6b327a02
编写于
10月 31, 2013
作者:
V
Vinod Koul
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-linus' into next
上级
f8d9f628
600d5258
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
20 deletion
+23
-20
drivers/dma/imx-dma.c
drivers/dma/imx-dma.c
+23
-17
drivers/dma/pl330.c
drivers/dma/pl330.c
+0
-3
未找到文件。
drivers/dma/imx-dma.c
浏览文件 @
6b327a02
...
...
@@ -572,9 +572,11 @@ static int imxdma_xfer_desc(struct imxdma_desc *d)
imx_dmav1_writel
(
imxdma
,
d
->
len
,
DMA_CNTR
(
imxdmac
->
channel
));
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d dest=0x%08x src=0x%08x "
"dma_length=%d
\n
"
,
__func__
,
imxdmac
->
channel
,
d
->
dest
,
d
->
src
,
d
->
len
);
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d dest=0x%08llx src=0x%08llx dma_length=%zu
\n
"
,
__func__
,
imxdmac
->
channel
,
(
unsigned
long
long
)
d
->
dest
,
(
unsigned
long
long
)
d
->
src
,
d
->
len
);
break
;
/* 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)
imx_dmav1_writel
(
imxdma
,
imxdmac
->
ccr_from_device
,
DMA_CCR
(
imxdmac
->
channel
));
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d sg=%p sgcount=%d "
"total length=%d dev_addr=0x%08x (dev2mem)
\n
"
,
__func__
,
imxdmac
->
channel
,
d
->
sg
,
d
->
sgcount
,
d
->
len
,
imxdmac
->
per_address
);
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d sg=%p sgcount=%d total length=%zu dev_addr=0x%08llx (dev2mem)
\n
"
,
__func__
,
imxdmac
->
channel
,
d
->
sg
,
d
->
sgcount
,
d
->
len
,
(
unsigned
long
long
)
imxdmac
->
per_address
);
}
else
if
(
d
->
direction
==
DMA_MEM_TO_DEV
)
{
imx_dmav1_writel
(
imxdma
,
imxdmac
->
per_address
,
DMA_DAR
(
imxdmac
->
channel
));
imx_dmav1_writel
(
imxdma
,
imxdmac
->
ccr_to_device
,
DMA_CCR
(
imxdmac
->
channel
));
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d sg=%p sgcount=%d "
"total length=%d dev_addr=0x%08x (mem2dev)
\n
"
,
__func__
,
imxdmac
->
channel
,
d
->
sg
,
d
->
sgcount
,
d
->
len
,
imxdmac
->
per_address
);
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d sg=%p sgcount=%d total length=%zu dev_addr=0x%08llx (mem2dev)
\n
"
,
__func__
,
imxdmac
->
channel
,
d
->
sg
,
d
->
sgcount
,
d
->
len
,
(
unsigned
long
long
)
imxdmac
->
per_address
);
}
else
{
dev_err
(
imxdma
->
dev
,
"%s channel: %d bad dma mode
\n
"
,
__func__
,
imxdmac
->
channel
);
...
...
@@ -870,7 +874,7 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic(
int
i
;
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
);
if
(
list_empty
(
&
imxdmac
->
ld_free
)
||
...
...
@@ -926,8 +930,9 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_memcpy(
struct
imxdma_engine
*
imxdma
=
imxdmac
->
imxdma
;
struct
imxdma_desc
*
desc
;
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src=0x%x dst=0x%x len=%d
\n
"
,
__func__
,
imxdmac
->
channel
,
src
,
dest
,
len
);
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src=0x%llx dst=0x%llx len=%zu
\n
"
,
__func__
,
imxdmac
->
channel
,
(
unsigned
long
long
)
src
,
(
unsigned
long
long
)
dest
,
len
);
if
(
list_empty
(
&
imxdmac
->
ld_free
)
||
imxdma_chan_is_doing_cyclic
(
imxdmac
))
...
...
@@ -956,9 +961,10 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_interleaved(
struct
imxdma_engine
*
imxdma
=
imxdmac
->
imxdma
;
struct
imxdma_desc
*
desc
;
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src_start=0x%x dst_start=0x%x
\n
"
" src_sgl=%s dst_sgl=%s numf=%d frame_size=%d
\n
"
,
__func__
,
imxdmac
->
channel
,
xt
->
src_start
,
xt
->
dst_start
,
dev_dbg
(
imxdma
->
dev
,
"%s channel: %d src_start=0x%llx dst_start=0x%llx
\n
"
" src_sgl=%s dst_sgl=%s numf=%zu frame_size=%zu
\n
"
,
__func__
,
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
->
numf
,
xt
->
frame_size
);
...
...
drivers/dma/pl330.c
浏览文件 @
6b327a02
...
...
@@ -3036,8 +3036,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
return
0
;
probe_err3:
amba_set_drvdata
(
adev
,
NULL
);
/* Idle the DMAC */
list_for_each_entry_safe
(
pch
,
_p
,
&
pdmac
->
ddma
.
channels
,
chan
.
device_node
)
{
...
...
@@ -3068,7 +3066,6 @@ static int pl330_remove(struct amba_device *adev)
of_dma_controller_free
(
adev
->
dev
.
of_node
);
dma_async_device_unregister
(
&
pdmac
->
ddma
);
amba_set_drvdata
(
adev
,
NULL
);
/* Idle the DMAC */
list_for_each_entry_safe
(
pch
,
_p
,
&
pdmac
->
ddma
.
channels
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录