Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
ffa179ae
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ffa179ae
编写于
8月 02, 2021
作者:
V
Vinod Koul
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fixes' into next
上级
dd861267
7199dded
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
9 deletion
+14
-9
drivers/dma/of-dma.c
drivers/dma/of-dma.c
+7
-2
drivers/dma/stm32-dma.c
drivers/dma/stm32-dma.c
+2
-2
drivers/dma/stm32-dmamux.c
drivers/dma/stm32-dmamux.c
+3
-3
drivers/dma/uniphier-xdmac.c
drivers/dma/uniphier-xdmac.c
+2
-2
未找到文件。
drivers/dma/of-dma.c
浏览文件 @
ffa179ae
...
...
@@ -67,8 +67,12 @@ static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec,
return
NULL
;
ofdma_target
=
of_dma_find_controller
(
&
dma_spec_target
);
if
(
!
ofdma_target
)
return
NULL
;
if
(
!
ofdma_target
)
{
ofdma
->
dma_router
->
route_free
(
ofdma
->
dma_router
->
dev
,
route_data
);
chan
=
ERR_PTR
(
-
EPROBE_DEFER
);
goto
err
;
}
chan
=
ofdma_target
->
of_dma_xlate
(
&
dma_spec_target
,
ofdma_target
);
if
(
IS_ERR_OR_NULL
(
chan
))
{
...
...
@@ -89,6 +93,7 @@ static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec,
}
}
err:
/*
* Need to put the node back since the ofdma->of_dma_route_allocate
* has taken it for generating the new, translated dma_spec
...
...
drivers/dma/stm32-dma.c
浏览文件 @
ffa179ae
...
...
@@ -1202,7 +1202,7 @@ static int stm32_dma_alloc_chan_resources(struct dma_chan *c)
chan
->
config_init
=
false
;
ret
=
pm_runtime_
get_sync
(
dmadev
->
ddev
.
dev
);
ret
=
pm_runtime_
resume_and_get
(
dmadev
->
ddev
.
dev
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -1474,7 +1474,7 @@ static int stm32_dma_suspend(struct device *dev)
struct
stm32_dma_device
*
dmadev
=
dev_get_drvdata
(
dev
);
int
id
,
ret
,
scr
;
ret
=
pm_runtime_
get_sync
(
dev
);
ret
=
pm_runtime_
resume_and_get
(
dev
);
if
(
ret
<
0
)
return
ret
;
...
...
drivers/dma/stm32-dmamux.c
浏览文件 @
ffa179ae
...
...
@@ -137,7 +137,7 @@ static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec,
/* Set dma request */
spin_lock_irqsave
(
&
dmamux
->
lock
,
flags
);
ret
=
pm_runtime_
get_sync
(
&
pdev
->
dev
);
ret
=
pm_runtime_
resume_and_get
(
&
pdev
->
dev
);
if
(
ret
<
0
)
{
spin_unlock_irqrestore
(
&
dmamux
->
lock
,
flags
);
goto
error
;
...
...
@@ -336,7 +336,7 @@ static int stm32_dmamux_suspend(struct device *dev)
struct
stm32_dmamux_data
*
stm32_dmamux
=
platform_get_drvdata
(
pdev
);
int
i
,
ret
;
ret
=
pm_runtime_
get_sync
(
dev
);
ret
=
pm_runtime_
resume_and_get
(
dev
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -361,7 +361,7 @@ static int stm32_dmamux_resume(struct device *dev)
if
(
ret
<
0
)
return
ret
;
ret
=
pm_runtime_
get_sync
(
dev
);
ret
=
pm_runtime_
resume_and_get
(
dev
);
if
(
ret
<
0
)
return
ret
;
...
...
drivers/dma/uniphier-xdmac.c
浏览文件 @
ffa179ae
...
...
@@ -209,8 +209,8 @@ static int uniphier_xdmac_chan_stop(struct uniphier_xdmac_chan *xc)
writel
(
0
,
xc
->
reg_ch_base
+
XDMAC_TSS
);
/* wait until transfer is stopped */
return
readl_poll_timeout
(
xc
->
reg_ch_base
+
XDMAC_STAT
,
val
,
!
(
val
&
XDMAC_STAT_TENF
),
100
,
1000
);
return
readl_poll_timeout
_atomic
(
xc
->
reg_ch_base
+
XDMAC_STAT
,
val
,
!
(
val
&
XDMAC_STAT_TENF
),
100
,
1000
);
}
/* xc->vc.lock must be held by caller */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录