Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
1feafd64
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看板
提交
1feafd64
编写于
9月 12, 2016
作者:
R
Russell King
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'fixes-pcmcia' and 'fixes-sa1111' into fixes
上级
817ed574
87d5dd62
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
13 deletion
+19
-13
arch/arm/common/sa1111.c
arch/arm/common/sa1111.c
+19
-13
未找到文件。
arch/arm/common/sa1111.c
浏览文件 @
1feafd64
...
...
@@ -472,8 +472,8 @@ static int sa1111_setup_irq(struct sa1111 *sachip, unsigned irq_base)
* specifies that S0ReadyInt and S1ReadyInt should be '1'.
*/
sa1111_writel
(
0
,
irqbase
+
SA1111_INTPOL0
);
sa1111_writel
(
SA1111_IRQMASK_HI
(
IRQ_S0_READY_NINT
)
|
SA1111_IRQMASK_HI
(
IRQ_S1_READY_NINT
),
sa1111_writel
(
BIT
(
IRQ_S0_READY_NINT
&
31
)
|
BIT
(
IRQ_S1_READY_NINT
&
31
),
irqbase
+
SA1111_INTPOL1
);
/* clear all IRQs */
...
...
@@ -754,7 +754,7 @@ static int __sa1111_probe(struct device *me, struct resource *mem, int irq)
if
(
sachip
->
irq
!=
NO_IRQ
)
{
ret
=
sa1111_setup_irq
(
sachip
,
pd
->
irq_base
);
if
(
ret
)
goto
err_
unmap
;
goto
err_
clk
;
}
#ifdef CONFIG_ARCH_SA1100
...
...
@@ -799,6 +799,8 @@ static int __sa1111_probe(struct device *me, struct resource *mem, int irq)
return
0
;
err_clk:
clk_disable
(
sachip
->
clk
);
err_unmap:
iounmap
(
sachip
->
base
);
err_clk_unprep:
...
...
@@ -869,9 +871,9 @@ struct sa1111_save_data {
#ifdef CONFIG_PM
static
int
sa1111_suspend
(
struct
platform_device
*
dev
,
pm_message_t
state
)
static
int
sa1111_suspend
_noirq
(
struct
device
*
dev
)
{
struct
sa1111
*
sachip
=
platform
_get_drvdata
(
dev
);
struct
sa1111
*
sachip
=
dev
_get_drvdata
(
dev
);
struct
sa1111_save_data
*
save
;
unsigned
long
flags
;
unsigned
int
val
;
...
...
@@ -934,9 +936,9 @@ static int sa1111_suspend(struct platform_device *dev, pm_message_t state)
* restored by their respective drivers, and must be called
* via LDM after this function.
*/
static
int
sa1111_resume
(
struct
platform_
device
*
dev
)
static
int
sa1111_resume
_noirq
(
struct
device
*
dev
)
{
struct
sa1111
*
sachip
=
platform
_get_drvdata
(
dev
);
struct
sa1111
*
sachip
=
dev
_get_drvdata
(
dev
);
struct
sa1111_save_data
*
save
;
unsigned
long
flags
,
id
;
void
__iomem
*
base
;
...
...
@@ -952,7 +954,7 @@ static int sa1111_resume(struct platform_device *dev)
id
=
sa1111_readl
(
sachip
->
base
+
SA1111_SKID
);
if
((
id
&
SKID_ID_MASK
)
!=
SKID_SA1111_ID
)
{
__sa1111_remove
(
sachip
);
platform
_set_drvdata
(
dev
,
NULL
);
dev
_set_drvdata
(
dev
,
NULL
);
kfree
(
save
);
return
0
;
}
...
...
@@ -1003,8 +1005,8 @@ static int sa1111_resume(struct platform_device *dev)
}
#else
#define sa1111_suspend NULL
#define sa1111_resume NULL
#define sa1111_suspend
_noirq
NULL
#define sa1111_resume
_noirq
NULL
#endif
static
int
sa1111_probe
(
struct
platform_device
*
pdev
)
...
...
@@ -1017,7 +1019,7 @@ static int sa1111_probe(struct platform_device *pdev)
return
-
EINVAL
;
irq
=
platform_get_irq
(
pdev
,
0
);
if
(
irq
<
0
)
return
-
ENXIO
;
return
irq
;
return
__sa1111_probe
(
&
pdev
->
dev
,
mem
,
irq
);
}
...
...
@@ -1038,6 +1040,11 @@ static int sa1111_remove(struct platform_device *pdev)
return
0
;
}
static
struct
dev_pm_ops
sa1111_pm_ops
=
{
.
suspend_noirq
=
sa1111_suspend_noirq
,
.
resume_noirq
=
sa1111_resume_noirq
,
};
/*
* Not sure if this should be on the system bus or not yet.
* We really want some way to register a system device at
...
...
@@ -1050,10 +1057,9 @@ static int sa1111_remove(struct platform_device *pdev)
static
struct
platform_driver
sa1111_device_driver
=
{
.
probe
=
sa1111_probe
,
.
remove
=
sa1111_remove
,
.
suspend
=
sa1111_suspend
,
.
resume
=
sa1111_resume
,
.
driver
=
{
.
name
=
"sa1111"
,
.
pm
=
&
sa1111_pm_ops
,
},
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录