Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
3a7b854d
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3a7b854d
编写于
4月 10, 2018
作者:
V
Vinod Koul
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'topic/renesas' into for-linus
上级
477e0f90
a0b007e1
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
2 deletion
+14
-2
Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt
Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt
+2
-0
Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt
Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt
+1
-0
drivers/dma/sh/rcar-dmac.c
drivers/dma/sh/rcar-dmac.c
+11
-2
未找到文件。
Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt
浏览文件 @
3a7b854d
...
@@ -18,6 +18,7 @@ Required Properties:
...
@@ -18,6 +18,7 @@ Required Properties:
Examples with soctypes are:
Examples with soctypes are:
- "renesas,dmac-r8a7743" (RZ/G1M)
- "renesas,dmac-r8a7743" (RZ/G1M)
- "renesas,dmac-r8a7745" (RZ/G1E)
- "renesas,dmac-r8a7745" (RZ/G1E)
- "renesas,dmac-r8a77470" (RZ/G1C)
- "renesas,dmac-r8a7790" (R-Car H2)
- "renesas,dmac-r8a7790" (R-Car H2)
- "renesas,dmac-r8a7791" (R-Car M2-W)
- "renesas,dmac-r8a7791" (R-Car M2-W)
- "renesas,dmac-r8a7792" (R-Car V2H)
- "renesas,dmac-r8a7792" (R-Car V2H)
...
@@ -26,6 +27,7 @@ Required Properties:
...
@@ -26,6 +27,7 @@ Required Properties:
- "renesas,dmac-r8a7795" (R-Car H3)
- "renesas,dmac-r8a7795" (R-Car H3)
- "renesas,dmac-r8a7796" (R-Car M3-W)
- "renesas,dmac-r8a7796" (R-Car M3-W)
- "renesas,dmac-r8a77970" (R-Car V3M)
- "renesas,dmac-r8a77970" (R-Car V3M)
- "renesas,dmac-r8a77980" (R-Car V3H)
- reg: base address and length of the registers block for the DMAC
- reg: base address and length of the registers block for the DMAC
...
...
Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt
浏览文件 @
3a7b854d
...
@@ -11,6 +11,7 @@ Required Properties:
...
@@ -11,6 +11,7 @@ Required Properties:
- "renesas,r8a7794-usb-dmac" (R-Car E2)
- "renesas,r8a7794-usb-dmac" (R-Car E2)
- "renesas,r8a7795-usb-dmac" (R-Car H3)
- "renesas,r8a7795-usb-dmac" (R-Car H3)
- "renesas,r8a7796-usb-dmac" (R-Car M3-W)
- "renesas,r8a7796-usb-dmac" (R-Car M3-W)
- "renesas,r8a77965-usb-dmac" (R-Car M3-N)
- reg: base address and length of the registers block for the DMAC
- reg: base address and length of the registers block for the DMAC
- interrupts: interrupt specifiers for the DMAC, one for each entry in
- interrupts: interrupt specifiers for the DMAC, one for each entry in
interrupt-names.
interrupt-names.
...
...
drivers/dma/sh/rcar-dmac.c
浏览文件 @
3a7b854d
...
@@ -1301,8 +1301,17 @@ static unsigned int rcar_dmac_chan_get_residue(struct rcar_dmac_chan *chan,
...
@@ -1301,8 +1301,17 @@ static unsigned int rcar_dmac_chan_get_residue(struct rcar_dmac_chan *chan,
* If the cookie doesn't correspond to the currently running transfer
* If the cookie doesn't correspond to the currently running transfer
* then the descriptor hasn't been processed yet, and the residue is
* then the descriptor hasn't been processed yet, and the residue is
* equal to the full descriptor size.
* equal to the full descriptor size.
* Also, a client driver is possible to call this function before
* rcar_dmac_isr_channel_thread() runs. In this case, the "desc.running"
* will be the next descriptor, and the done list will appear. So, if
* the argument cookie matches the done list's cookie, we can assume
* the residue is zero.
*/
*/
if
(
cookie
!=
desc
->
async_tx
.
cookie
)
{
if
(
cookie
!=
desc
->
async_tx
.
cookie
)
{
list_for_each_entry
(
desc
,
&
chan
->
desc
.
done
,
node
)
{
if
(
cookie
==
desc
->
async_tx
.
cookie
)
return
0
;
}
list_for_each_entry
(
desc
,
&
chan
->
desc
.
pending
,
node
)
{
list_for_each_entry
(
desc
,
&
chan
->
desc
.
pending
,
node
)
{
if
(
cookie
==
desc
->
async_tx
.
cookie
)
if
(
cookie
==
desc
->
async_tx
.
cookie
)
return
desc
->
size
;
return
desc
->
size
;
...
@@ -1677,7 +1686,7 @@ static const struct dev_pm_ops rcar_dmac_pm = {
...
@@ -1677,7 +1686,7 @@ static const struct dev_pm_ops rcar_dmac_pm = {
* - Wait for the current transfer to complete and stop the device,
* - Wait for the current transfer to complete and stop the device,
* - Resume transfers, if any.
* - Resume transfers, if any.
*/
*/
SET_
LATE
_SYSTEM_SLEEP_PM_OPS
(
pm_runtime_force_suspend
,
SET_
NOIRQ
_SYSTEM_SLEEP_PM_OPS
(
pm_runtime_force_suspend
,
pm_runtime_force_resume
)
pm_runtime_force_resume
)
SET_RUNTIME_PM_OPS
(
rcar_dmac_runtime_suspend
,
rcar_dmac_runtime_resume
,
SET_RUNTIME_PM_OPS
(
rcar_dmac_runtime_suspend
,
rcar_dmac_runtime_resume
,
NULL
)
NULL
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录