Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
5c9e4285
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5c9e4285
编写于
7月 14, 2011
作者:
L
Larry Finger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
staging: rtl8192e: Remove dead code associated with CONFIG_RTLWIFI_DEBUGFS
Signed-off-by:
N
Larry Finger
<
Larry.Finger@lwfinger.net
>
上级
25d289fb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
193 deletion
+0
-193
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_core.c
+0
-3
drivers/staging/rtl8192e/rtl_core.h
drivers/staging/rtl8192e/rtl_core.h
+0
-4
drivers/staging/rtl8192e/rtl_debug.c
drivers/staging/rtl8192e/rtl_debug.c
+0
-174
drivers/staging/rtl8192e/rtl_debug.h
drivers/staging/rtl8192e/rtl_debug.h
+0
-7
drivers/staging/rtl8192e/rtl_ps.c
drivers/staging/rtl8192e/rtl_ps.c
+0
-5
未找到文件。
drivers/staging/rtl8192e/rtl_core.c
浏览文件 @
5c9e4285
...
...
@@ -1718,9 +1718,6 @@ void rtl819x_watchdog_wqcallback(void *data)
if
((
ieee
->
iw_mode
==
IW_MODE_INFRA
)
&&
(
ieee
->
state
==
RTLLIB_NOLINK
)
&&
\
(
ieee
->
eRFPowerState
==
eRfOn
)
&&!
ieee
->
is_set_key
&&
\
(
!
ieee
->
proto_stoppping
)
&&
!
ieee
->
wx_set_enc
#ifdef CONFIG_RTLWIFI_DEBUGFS
&&
(
!
priv
->
debug
->
hw_holding
)
#endif
){
if
((
ieee
->
PowerSaveControl
.
ReturnPoint
==
IPS_CALLBACK_NONE
)
&&
(
!
ieee
->
bNetPromiscuousMode
))
...
...
drivers/staging/rtl8192e/rtl_core.h
浏览文件 @
5c9e4285
...
...
@@ -590,10 +590,6 @@ typedef struct r8192_priv
struct
rtl819x_ops
*
ops
;
struct
rtllib_device
*
rtllib
;
#ifdef CONFIG_RTLWIFI_DEBUGFS
rtl_fs_debug
*
debug
;
#endif
/* CONFIG_IWLWIFI_DEBUGFS */
work_struct_rsl
reset_wq
;
LOG_INTERRUPT_8190_T
InterruptLog
;
...
...
drivers/staging/rtl8192e/rtl_debug.c
浏览文件 @
5c9e4285
...
...
@@ -109,180 +109,6 @@ void rtl8192_dump_reg(struct net_device *dev)
printk
(
"
\n
"
);
}
#ifdef CONFIG_RTLWIFI_DEBUGFS
/* debugfs related stuff */
static
struct
dentry
*
rtl_debugfs_root
;
static
int
rtl_dbgfs_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
file
->
private_data
=
inode
->
i_private
;
return
0
;
}
static
ssize_t
rtl_dbgfs_register_write
(
struct
file
*
file
,
const
char
__user
*
user_buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
r8192_priv
*
priv
=
(
struct
r8192_priv
*
)
file
->
private_data
;
char
buf
[
32
];
int
buf_size
;
u32
type
,
offset
;
memset
(
buf
,
0
,
sizeof
(
buf
));
buf_size
=
min
(
count
,
sizeof
(
buf
)
-
1
);
if
(
copy_from_user
(
buf
,
user_buf
,
buf_size
))
return
-
EFAULT
;
if
(
sscanf
(
buf
,
"%x,%x"
,
&
type
,
&
offset
)
==
2
)
{
priv
->
debug
->
hw_type
=
type
;
priv
->
debug
->
hw_offset
=
offset
;
}
else
{
priv
->
debug
->
hw_type
=
0
;
priv
->
debug
->
hw_offset
=
0
;
}
return
count
;
}
void
rtl_hardware_grab
(
struct
net_device
*
dev
)
{
struct
r8192_priv
*
priv
=
rtllib_priv
(
dev
);
int
t
=
0
;
int
timeout
=
20
;
u32
mask
=
RF_CHANGE_BY_HW
|
RF_CHANGE_BY_PS
|
RF_CHANGE_BY_IPS
;
priv
->
debug
->
hw_holding
=
true
;
rtllib_ips_leave_wq
(
dev
);
do
{
if
((
priv
->
rtllib
->
RfOffReason
&
mask
))
{
msleep
(
100
);
t
++
;
}
else
{
return
;
}
}
while
(
t
<
timeout
);
return
;
}
static
ssize_t
rtl_dbgfs_register_read
(
struct
file
*
file
,
char
__user
*
user_buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
r8192_priv
*
priv
=
(
struct
r8192_priv
*
)
file
->
private_data
;
struct
net_device
*
dev
=
priv
->
rtllib
->
dev
;
ssize_t
ret
=
0
;
char
buf
[
2048
];
int
n
,
i
;
u32
len
=
0
;
u32
max
=
0xff
;
u32
page_no
,
path
;
rtl_hardware_grab
(
dev
);
if
(
!
priv
->
debug
->
hw_type
)
{
page_no
=
(
priv
->
debug
->
hw_offset
>
0x0f
)
?
0x0f
:
priv
->
debug
->
hw_offset
;
{
len
+=
snprintf
(
buf
+
len
,
count
-
len
,
"
\n
#################### MAC page- %x##################
\n
"
,
page_no
);
for
(
n
=
0
;
n
<=
max
;)
{
len
+=
snprintf
(
buf
+
len
,
count
-
len
,
"
\n
D: %2x > "
,
n
);
for
(
i
=
0
;
i
<
16
&&
n
<=
max
;
i
++
,
n
++
)
len
+=
snprintf
(
buf
+
len
,
count
-
len
,
"%2.2x "
,
read_nic_byte
(
dev
,((
page_no
<<
8
)
|
n
)));
}
}
}
else
{
path
=
(
priv
->
debug
->
hw_offset
<
RF90_PATH_MAX
)
?
priv
->
debug
->
hw_offset
:
(
RF90_PATH_MAX
-
1
);
len
+=
snprintf
(
buf
+
len
,
count
-
len
,
"
\n
#################### RF-PATH-%x ##################
\n
"
,
0x0a
+
path
);
for
(
n
=
0
;
n
<=
max
;)
{
len
+=
snprintf
(
buf
+
len
,
count
-
len
,
"
\n
D: %2x > "
,
n
);
for
(
i
=
0
;
i
<
4
&&
n
<=
max
;
n
+=
4
,
i
++
)
len
+=
snprintf
(
buf
+
len
,
count
-
len
,
"%8.8x "
,
rtl8192_phy_QueryRFReg
(
dev
,
(
RF90_RADIO_PATH_E
)
path
,
\
n
,
bMaskDWord
));
}
}
priv
->
debug
->
hw_holding
=
false
;
len
+=
snprintf
(
buf
+
len
,
count
-
len
,
"
\n
"
);
ret
=
simple_read_from_buffer
(
user_buf
,
count
,
ppos
,
buf
,
len
);
return
ret
;
}
static
const
struct
file_operations
rtl_register_debug
=
{
.
read
=
rtl_dbgfs_register_read
,
.
write
=
rtl_dbgfs_register_write
,
.
open
=
rtl_dbgfs_open
,
.
owner
=
THIS_MODULE
};
int
rtl_debug_module_init
(
struct
r8192_priv
*
priv
,
const
char
*
name
)
{
rtl_fs_debug
*
debug
;
int
ret
=
0
;
if
(
!
rtl_debugfs_root
)
return
-
ENOENT
;
debug
=
kzalloc
(
sizeof
(
rtl_fs_debug
),
GFP_KERNEL
);
if
(
!
debug
)
{
ret
=
-
ENOMEM
;
goto
err
;
}
priv
->
debug
=
debug
;
debug
->
name
=
name
;
debug
->
dir_drv
=
debugfs_create_dir
(
name
,
rtl_debugfs_root
);
if
(
!
debug
->
dir_drv
)
{
ret
=
-
ENOENT
;
goto
err
;
}
debug
->
debug_register
=
debugfs_create_file
(
"debug_register"
,
S_IRUGO
,
debug
->
dir_drv
,
priv
,
&
rtl_register_debug
);
if
(
!
debug
->
debug_register
)
{
ret
=
-
ENOENT
;
goto
err
;
}
return
0
;
err:
RT_TRACE
(
COMP_DBG
,
"Can't open the debugfs directory
\n
"
);
rtl_debug_module_remove
(
priv
);
return
ret
;
}
void
rtl_debug_module_remove
(
struct
r8192_priv
*
priv
)
{
if
(
!
priv
->
debug
)
return
;
debugfs_remove
(
priv
->
debug
->
debug_register
);
debugfs_remove
(
priv
->
debug
->
dir_drv
);
kfree
(
priv
->
debug
);
priv
->
debug
=
NULL
;
}
int
rtl_create_debugfs_root
(
void
)
{
rtl_debugfs_root
=
debugfs_create_dir
(
DRV_NAME
,
NULL
);
if
(
!
rtl_debugfs_root
)
return
-
ENOENT
;
return
0
;
}
void
rtl_remove_debugfs_root
(
void
)
{
debugfs_remove
(
rtl_debugfs_root
);
rtl_debugfs_root
=
NULL
;
}
#endif
/****************************************************************************
-----------------------------PROCFS STUFF-------------------------
*****************************************************************************/
...
...
drivers/staging/rtl8192e/rtl_debug.h
浏览文件 @
5c9e4285
...
...
@@ -272,12 +272,6 @@ void dump_eprom(struct net_device *dev);
void
rtl8192_dump_reg
(
struct
net_device
*
dev
);
/* debugfs stuff */
#ifdef CONFIG_RTLWIFI_DEBUGFS
int
rtl_debug_module_init
(
struct
r8192_priv
*
priv
,
const
char
*
name
);
void
rtl_debug_module_remove
(
struct
r8192_priv
*
priv
);
int
rtl_create_debugfs_root
(
void
);
void
rtl_remove_debugfs_root
(
void
);
#else
static
inline
int
rtl_debug_module_init
(
struct
r8192_priv
*
priv
,
const
char
*
name
)
{
return
0
;
}
...
...
@@ -289,7 +283,6 @@ static inline int rtl_create_debugfs_root(void) {
}
static
inline
void
rtl_remove_debugfs_root
(
void
)
{
}
#endif
/* proc stuff */
void
rtl8192_proc_init_one
(
struct
net_device
*
dev
);
...
...
drivers/staging/rtl8192e/rtl_ps.c
浏览文件 @
5c9e4285
...
...
@@ -42,11 +42,6 @@ void rtl8192_hw_sleep_down(struct net_device *dev)
spin_unlock_irqrestore
(
&
priv
->
rf_ps_lock
,
flags
);
RT_TRACE
(
COMP_DBG
,
"%s()============>come to sleep down
\n
"
,
__func__
);
#ifdef CONFIG_RTLWIFI_DEBUGFS
if
(
priv
->
debug
->
hw_holding
)
{
return
;
}
#endif
MgntActSet_RF_State
(
dev
,
eRfSleep
,
RF_CHANGE_BY_PS
,
false
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录