Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d65c8f31
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看板
提交
d65c8f31
编写于
7月 08, 2012
作者:
F
Florian Tobias Schandinat
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fbdev-for-linus' into fbdev-next
上级
3b9cc4ea
373b4365
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
33 addition
and
22 deletion
+33
-22
drivers/video/omap2/dss/core.c
drivers/video/omap2/dss/core.c
+27
-16
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dispc.c
+1
-1
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dsi.c
+1
-1
drivers/video/omap2/dss/dss.c
drivers/video/omap2/dss/dss.c
+1
-1
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/hdmi.c
+1
-1
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/rfbi.c
+1
-1
drivers/video/omap2/dss/venc.c
drivers/video/omap2/dss/venc.c
+1
-1
未找到文件。
drivers/video/omap2/dss/core.c
浏览文件 @
d65c8f31
...
...
@@ -32,6 +32,7 @@
#include <linux/io.h>
#include <linux/device.h>
#include <linux/regulator/consumer.h>
#include <linux/suspend.h>
#include <video/omapdss.h>
...
...
@@ -201,6 +202,28 @@ int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *))
#endif
/* CONFIG_DEBUG_FS && CONFIG_OMAP2_DSS_DEBUG_SUPPORT */
/* PLATFORM DEVICE */
static
int
omap_dss_pm_notif
(
struct
notifier_block
*
b
,
unsigned
long
v
,
void
*
d
)
{
DSSDBG
(
"pm notif %lu
\n
"
,
v
);
switch
(
v
)
{
case
PM_SUSPEND_PREPARE
:
DSSDBG
(
"suspending displays
\n
"
);
return
dss_suspend_all_devices
();
case
PM_POST_SUSPEND
:
DSSDBG
(
"resuming displays
\n
"
);
return
dss_resume_all_devices
();
default:
return
0
;
}
}
static
struct
notifier_block
omap_dss_pm_notif_block
=
{
.
notifier_call
=
omap_dss_pm_notif
,
};
static
int
__init
omap_dss_probe
(
struct
platform_device
*
pdev
)
{
struct
omap_dss_board_info
*
pdata
=
pdev
->
dev
.
platform_data
;
...
...
@@ -224,6 +247,8 @@ static int __init omap_dss_probe(struct platform_device *pdev)
else
if
(
pdata
->
default_device
)
core
.
default_display_name
=
pdata
->
default_device
->
name
;
register_pm_notifier
(
&
omap_dss_pm_notif_block
);
return
0
;
err_debugfs:
...
...
@@ -233,6 +258,8 @@ static int __init omap_dss_probe(struct platform_device *pdev)
static
int
omap_dss_remove
(
struct
platform_device
*
pdev
)
{
unregister_pm_notifier
(
&
omap_dss_pm_notif_block
);
dss_uninitialize_debugfs
();
dss_uninit_overlays
(
pdev
);
...
...
@@ -247,25 +274,9 @@ static void omap_dss_shutdown(struct platform_device *pdev)
dss_disable_all_devices
();
}
static
int
omap_dss_suspend
(
struct
platform_device
*
pdev
,
pm_message_t
state
)
{
DSSDBG
(
"suspend %d
\n
"
,
state
.
event
);
return
dss_suspend_all_devices
();
}
static
int
omap_dss_resume
(
struct
platform_device
*
pdev
)
{
DSSDBG
(
"resume
\n
"
);
return
dss_resume_all_devices
();
}
static
struct
platform_driver
omap_dss_driver
=
{
.
remove
=
omap_dss_remove
,
.
shutdown
=
omap_dss_shutdown
,
.
suspend
=
omap_dss_suspend
,
.
resume
=
omap_dss_resume
,
.
driver
=
{
.
name
=
"omapdss"
,
.
owner
=
THIS_MODULE
,
...
...
drivers/video/omap2/dss/dispc.c
浏览文件 @
d65c8f31
...
...
@@ -384,7 +384,7 @@ void dispc_runtime_put(void)
DSSDBG
(
"dispc_runtime_put
\n
"
);
r
=
pm_runtime_put_sync
(
&
dispc
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
&&
r
!=
-
ENOSYS
);
}
static
inline
bool
dispc_mgr_is_lcd
(
enum
omap_channel
channel
)
...
...
drivers/video/omap2/dss/dsi.c
浏览文件 @
d65c8f31
...
...
@@ -1075,7 +1075,7 @@ void dsi_runtime_put(struct platform_device *dsidev)
DSSDBG
(
"dsi_runtime_put
\n
"
);
r
=
pm_runtime_put_sync
(
&
dsi
->
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
&&
r
!=
-
ENOSYS
);
}
/* source clock for DSI PLL. this could also be PCLKFREE */
...
...
drivers/video/omap2/dss/dss.c
浏览文件 @
d65c8f31
...
...
@@ -731,7 +731,7 @@ static void dss_runtime_put(void)
DSSDBG
(
"dss_runtime_put
\n
"
);
r
=
pm_runtime_put_sync
(
&
dss
.
pdev
->
dev
);
WARN_ON
(
r
<
0
&&
r
!=
-
EBUSY
);
WARN_ON
(
r
<
0
&&
r
!=
-
E
NOSYS
&&
r
!=
-
E
BUSY
);
}
/* DEBUGFS */
...
...
drivers/video/omap2/dss/hdmi.c
浏览文件 @
d65c8f31
...
...
@@ -138,7 +138,7 @@ static void hdmi_runtime_put(void)
DSSDBG
(
"hdmi_runtime_put
\n
"
);
r
=
pm_runtime_put_sync
(
&
hdmi
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
&&
r
!=
-
ENOSYS
);
}
static
int
__init
hdmi_init_display
(
struct
omap_dss_device
*
dssdev
)
...
...
drivers/video/omap2/dss/rfbi.c
浏览文件 @
d65c8f31
...
...
@@ -141,7 +141,7 @@ static void rfbi_runtime_put(void)
DSSDBG
(
"rfbi_runtime_put
\n
"
);
r
=
pm_runtime_put_sync
(
&
rfbi
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
&&
r
!=
-
ENOSYS
);
}
void
rfbi_bus_lock
(
void
)
...
...
drivers/video/omap2/dss/venc.c
浏览文件 @
d65c8f31
...
...
@@ -402,7 +402,7 @@ static void venc_runtime_put(void)
DSSDBG
(
"venc_runtime_put
\n
"
);
r
=
pm_runtime_put_sync
(
&
venc
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
&&
r
!=
-
ENOSYS
);
}
static
const
struct
venc_config
*
venc_timings_to_config
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录