Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
70c4fa22
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
70c4fa22
编写于
13年前
作者:
T
Thomas Gleixner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
arm: msm: Use proper irq accessor functions
Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
8c04a176
无相关合并请求
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
arch/arm/mach-msm/gpio-v2.c
arch/arm/mach-msm/gpio-v2.c
+2
-2
arch/arm/mach-msm/gpio.c
arch/arm/mach-msm/gpio.c
+2
-2
arch/arm/mach-msm/irq-vic.c
arch/arm/mach-msm/irq-vic.c
+2
-2
arch/arm/mach-msm/irq.c
arch/arm/mach-msm/irq.c
+2
-2
arch/arm/mach-msm/sirc.c
arch/arm/mach-msm/sirc.c
+2
-2
未找到文件。
arch/arm/mach-msm/gpio-v2.c
浏览文件 @
70c4fa22
...
...
@@ -275,14 +275,14 @@ static int msm_gpio_irq_set_type(struct irq_data *d, unsigned int flow_type)
if
(
flow_type
&
IRQ_TYPE_EDGE_BOTH
)
{
bits
|=
BIT
(
INTR_DECT_CTL
);
irq_desc
[
irq
].
handle_irq
=
handle_edge_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_edge_irq
)
;
if
((
flow_type
&
IRQ_TYPE_EDGE_BOTH
)
==
IRQ_TYPE_EDGE_BOTH
)
__set_bit
(
gpio
,
msm_gpio
.
dual_edge_irqs
);
else
__clear_bit
(
gpio
,
msm_gpio
.
dual_edge_irqs
);
}
else
{
bits
&=
~
BIT
(
INTR_DECT_CTL
);
irq_desc
[
irq
].
handle_irq
=
handle_level_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_level_irq
)
;
__clear_bit
(
gpio
,
msm_gpio
.
dual_edge_irqs
);
}
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-msm/gpio.c
浏览文件 @
70c4fa22
...
...
@@ -293,10 +293,10 @@ static int msm_gpio_irq_set_type(struct irq_data *d, unsigned int flow_type)
val
=
readl
(
msm_chip
->
regs
.
int_edge
);
if
(
flow_type
&
IRQ_TYPE_EDGE_BOTH
)
{
writel
(
val
|
mask
,
msm_chip
->
regs
.
int_edge
);
irq_desc
[
d
->
irq
].
handle_irq
=
handle_edge_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_edge_irq
)
;
}
else
{
writel
(
val
&
~
mask
,
msm_chip
->
regs
.
int_edge
);
irq_desc
[
d
->
irq
].
handle_irq
=
handle_level_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_level_irq
)
;
}
if
((
flow_type
&
IRQ_TYPE_EDGE_BOTH
)
==
IRQ_TYPE_EDGE_BOTH
)
{
msm_chip
->
both_edge_detect
|=
mask
;
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-msm/irq-vic.c
浏览文件 @
70c4fa22
...
...
@@ -313,11 +313,11 @@ static int msm_irq_set_type(struct irq_data *d, unsigned int flow_type)
type
=
msm_irq_shadow_reg
[
index
].
int_type
;
if
(
flow_type
&
(
IRQF_TRIGGER_RISING
|
IRQF_TRIGGER_FALLING
))
{
type
|=
b
;
irq_desc
[
d
->
irq
].
handle_irq
=
handle_edge_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_edge_irq
)
;
}
if
(
flow_type
&
(
IRQF_TRIGGER_HIGH
|
IRQF_TRIGGER_LOW
))
{
type
&=
~
b
;
irq_desc
[
d
->
irq
].
handle_irq
=
handle_level_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_level_irq
)
;
}
writel
(
type
,
treg
);
msm_irq_shadow_reg
[
index
].
int_type
=
type
;
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-msm/irq.c
浏览文件 @
70c4fa22
...
...
@@ -100,11 +100,11 @@ static int msm_irq_set_type(struct irq_data *d, unsigned int flow_type)
if
(
flow_type
&
(
IRQF_TRIGGER_RISING
|
IRQF_TRIGGER_FALLING
))
{
writel
(
readl
(
treg
)
|
b
,
treg
);
irq_desc
[
d
->
irq
].
handle_irq
=
handle_edge_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_edge_irq
)
;
}
if
(
flow_type
&
(
IRQF_TRIGGER_HIGH
|
IRQF_TRIGGER_LOW
))
{
writel
(
readl
(
treg
)
&
(
~
b
),
treg
);
irq_desc
[
d
->
irq
].
handle_irq
=
handle_level_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_level_irq
)
;
}
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-msm/sirc.c
浏览文件 @
70c4fa22
...
...
@@ -105,10 +105,10 @@ static int sirc_irq_set_type(struct irq_data *d, unsigned int flow_type)
val
=
readl
(
sirc_regs
.
int_type
);
if
(
flow_type
&
(
IRQF_TRIGGER_RISING
|
IRQF_TRIGGER_FALLING
))
{
val
|=
mask
;
irq_desc
[
d
->
irq
].
handle_irq
=
handle_edge_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_edge_irq
)
;
}
else
{
val
&=
~
mask
;
irq_desc
[
d
->
irq
].
handle_irq
=
handle_level_irq
;
__irq_set_handler_locked
(
d
->
irq
,
handle_level_irq
)
;
}
writel
(
val
,
sirc_regs
.
int_type
);
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录