Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
cf8d1581
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看板
提交
cf8d1581
编写于
3月 24, 2011
作者:
T
Thomas Gleixner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
arm: msm: Convert to new irq chip functions
Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
1b7a2d90
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
16 deletion
+17
-16
arch/arm/mach-msm/gpio-v2.c
arch/arm/mach-msm/gpio-v2.c
+17
-16
未找到文件。
arch/arm/mach-msm/gpio-v2.c
浏览文件 @
cf8d1581
...
...
@@ -230,18 +230,18 @@ static void msm_gpio_update_dual_edge_pos(unsigned gpio)
val
,
val2
);
}
static
void
msm_gpio_irq_ack
(
unsigned
int
irq
)
static
void
msm_gpio_irq_ack
(
struct
irq_data
*
d
)
{
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
irq
);
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
d
->
irq
);
writel
(
BIT
(
INTR_STATUS
),
GPIO_INTR_STATUS
(
gpio
));
if
(
test_bit
(
gpio
,
msm_gpio
.
dual_edge_irqs
))
msm_gpio_update_dual_edge_pos
(
gpio
);
}
static
void
msm_gpio_irq_mask
(
unsigned
int
irq
)
static
void
msm_gpio_irq_mask
(
struct
irq_data
*
d
)
{
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
irq
);
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
d
->
irq
);
unsigned
long
irq_flags
;
spin_lock_irqsave
(
&
tlmm_lock
,
irq_flags
);
...
...
@@ -251,9 +251,9 @@ static void msm_gpio_irq_mask(unsigned int irq)
spin_unlock_irqrestore
(
&
tlmm_lock
,
irq_flags
);
}
static
void
msm_gpio_irq_unmask
(
unsigned
int
irq
)
static
void
msm_gpio_irq_unmask
(
struct
irq_data
*
d
)
{
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
irq
);
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
d
->
irq
);
unsigned
long
irq_flags
;
spin_lock_irqsave
(
&
tlmm_lock
,
irq_flags
);
...
...
@@ -263,9 +263,9 @@ static void msm_gpio_irq_unmask(unsigned int irq)
spin_unlock_irqrestore
(
&
tlmm_lock
,
irq_flags
);
}
static
int
msm_gpio_irq_set_type
(
unsigned
int
irq
,
unsigned
int
flow_type
)
static
int
msm_gpio_irq_set_type
(
struct
irq_data
*
d
,
unsigned
int
flow_type
)
{
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
irq
);
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
d
->
irq
);
unsigned
long
irq_flags
;
uint32_t
bits
;
...
...
@@ -309,6 +309,7 @@ static int msm_gpio_irq_set_type(unsigned int irq, unsigned int flow_type)
*/
static
void
msm_summary_irq_handler
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
{
struct
irq_data
*
data
=
irq_desc_get_irq_data
(
desc
);
unsigned
long
i
;
for
(
i
=
find_first_bit
(
msm_gpio
.
enabled_irqs
,
NR_GPIO_IRQS
);
...
...
@@ -318,12 +319,12 @@ static void msm_summary_irq_handler(unsigned int irq, struct irq_desc *desc)
generic_handle_irq
(
msm_gpio_to_irq
(
&
msm_gpio
.
gpio_chip
,
i
));
}
d
esc
->
chip
->
ack
(
irq
);
d
ata
->
chip
->
irq_ack
(
data
);
}
static
int
msm_gpio_irq_set_wake
(
unsigned
int
irq
,
unsigned
int
on
)
static
int
msm_gpio_irq_set_wake
(
struct
irq_data
*
d
,
unsigned
int
on
)
{
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
irq
);
int
gpio
=
msm_irq_to_gpio
(
&
msm_gpio
.
gpio_chip
,
d
->
irq
);
if
(
on
)
{
if
(
bitmap_empty
(
msm_gpio
.
wake_irqs
,
NR_GPIO_IRQS
))
...
...
@@ -340,11 +341,11 @@ static int msm_gpio_irq_set_wake(unsigned int irq, unsigned int on)
static
struct
irq_chip
msm_gpio_irq_chip
=
{
.
name
=
"msmgpio"
,
.
mask
=
msm_gpio_irq_mask
,
.
unmask
=
msm_gpio_irq_unmask
,
.
ack
=
msm_gpio_irq_ack
,
.
set_type
=
msm_gpio_irq_set_type
,
.
set_wake
=
msm_gpio_irq_set_wake
,
.
irq_mask
=
msm_gpio_irq_mask
,
.
irq_unmask
=
msm_gpio_irq_unmask
,
.
irq_ack
=
msm_gpio_irq_ack
,
.
irq_
set_type
=
msm_gpio_irq_set_type
,
.
irq_
set_wake
=
msm_gpio_irq_set_wake
,
};
static
int
__devinit
msm_gpio_probe
(
struct
platform_device
*
dev
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录