Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f1207ba1
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看板
提交
f1207ba1
编写于
7月 27, 2006
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] bcm43xx: fix-up build breakage from merging patches out of order
Signed-off-by:
N
John W. Linville
<
linville@tuxdriver.com
>
上级
27be44ff
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
14 deletion
+16
-14
drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c
drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c
+4
-2
drivers/net/wireless/bcm43xx/bcm43xx_main.c
drivers/net/wireless/bcm43xx/bcm43xx_main.c
+8
-8
drivers/net/wireless/bcm43xx/bcm43xx_sysfs.c
drivers/net/wireless/bcm43xx/bcm43xx_sysfs.c
+4
-4
未找到文件。
drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c
浏览文件 @
f1207ba1
...
...
@@ -331,7 +331,8 @@ static ssize_t restart_write_file(struct file *file, const char __user *user_buf
res
=
-
EFAULT
;
goto
out_up
;
}
bcm43xx_lock_irqsafe
(
bcm
,
flags
);
mutex_lock
(
&
(
bcm
)
->
mutex
);
spin_lock_irqsave
(
&
(
bcm
)
->
irq_lock
,
flags
);
if
(
bcm43xx_status
(
bcm
)
!=
BCM43xx_STAT_INITIALIZED
)
{
printk
(
KERN_INFO
PFX
"debugfs: Board not initialized.
\n
"
);
res
=
-
EFAULT
;
...
...
@@ -344,7 +345,8 @@ static ssize_t restart_write_file(struct file *file, const char __user *user_buf
res
=
-
EINVAL
;
out_unlock:
bcm43xx_unlock_irqsafe
(
bcm
,
flags
);
spin_unlock_irqrestore
(
&
(
bcm
)
->
irq_lock
,
flags
);
mutex_unlock
(
&
(
bcm
)
->
mutex
);
out_up:
up
(
&
big_buffer_sem
);
return
res
;
...
...
drivers/net/wireless/bcm43xx/bcm43xx_main.c
浏览文件 @
f1207ba1
...
...
@@ -3199,9 +3199,9 @@ static int bcm43xx_rng_read(struct hwrng *rng, u32 *data)
struct
bcm43xx_private
*
bcm
=
(
struct
bcm43xx_private
*
)
rng
->
priv
;
unsigned
long
flags
;
bcm43xx_lock_irqonly
(
bcm
,
flags
);
spin_lock_irqsave
(
&
(
bcm
)
->
irq_lock
,
flags
);
*
data
=
bcm43xx_read16
(
bcm
,
BCM43xx_MMIO_RNG
);
bcm43xx_unlock_irqonly
(
bcm
,
flags
);
spin_unlock_irqrestore
(
&
(
bcm
)
->
irq_lock
,
flags
);
return
(
sizeof
(
u16
));
}
...
...
@@ -3264,10 +3264,10 @@ static void bcm43xx_free_board(struct bcm43xx_private *bcm)
bcm43xx_sysfs_unregister
(
bcm
);
bcm43xx_periodic_tasks_delete
(
bcm
);
bcm43xx_lock_noirq
(
bcm
);
mutex_lock
(
&
(
bcm
)
->
mutex
);
bcm43xx_shutdown_all_wireless_cores
(
bcm
);
bcm43xx_pctl_set_crystal
(
bcm
,
0
);
bcm43xx_unlock_noirq
(
bcm
);
mutex_unlock
(
&
(
bcm
)
->
mutex
);
}
static
void
prepare_phydata_for_init
(
struct
bcm43xx_phyinfo
*
phy
)
...
...
@@ -3511,7 +3511,7 @@ static int bcm43xx_init_board(struct bcm43xx_private *bcm)
{
int
err
;
bcm43xx_lock_noirq
(
bcm
);
mutex_lock
(
&
(
bcm
)
->
mutex
);
tasklet_enable
(
&
bcm
->
isr_tasklet
);
err
=
bcm43xx_pctl_set_crystal
(
bcm
,
1
);
...
...
@@ -3533,7 +3533,7 @@ static int bcm43xx_init_board(struct bcm43xx_private *bcm)
schedule_work
(
&
bcm
->
softmac
->
associnfo
.
work
);
out:
bcm43xx_unlock_noirq
(
bcm
);
mutex_unlock
(
&
(
bcm
)
->
mutex
);
return
err
;
...
...
@@ -4097,10 +4097,10 @@ static void bcm43xx_chip_reset(void *_bcm)
struct
bcm43xx_phyinfo
*
phy
;
int
err
;
bcm43xx_lock_noirq
(
bcm
);
mutex_lock
(
&
(
bcm
)
->
mutex
);
phy
=
bcm43xx_current_phy
(
bcm
);
err
=
bcm43xx_select_wireless_core
(
bcm
,
phy
->
type
);
bcm43xx_unlock_noirq
(
bcm
);
mutex_unlock
(
&
(
bcm
)
->
mutex
);
printk
(
KERN_ERR
PFX
"Controller restart%s
\n
"
,
(
err
==
0
)
?
"ed"
:
" failed"
);
...
...
drivers/net/wireless/bcm43xx/bcm43xx_sysfs.c
浏览文件 @
f1207ba1
...
...
@@ -333,9 +333,9 @@ static ssize_t bcm43xx_attr_phymode_store(struct device *dev,
goto
out
;
}
bcm43xx_lock_noirq
(
bcm
);
mutex_lock
(
&
(
bcm
)
->
mutex
);
err
=
bcm43xx_select_wireless_core
(
bcm
,
phytype
);
bcm43xx_unlock_noirq
(
bcm
);
mutex_unlock
(
&
(
bcm
)
->
mutex
);
if
(
err
==
-
ESRCH
)
err
=
-
ENODEV
;
...
...
@@ -350,7 +350,7 @@ static ssize_t bcm43xx_attr_phymode_show(struct device *dev,
struct
bcm43xx_private
*
bcm
=
dev_to_bcm
(
dev
);
ssize_t
count
=
0
;
bcm43xx_lock_noirq
(
bcm
);
mutex_lock
(
&
(
bcm
)
->
mutex
);
switch
(
bcm43xx_current_phy
(
bcm
)
->
type
)
{
case
BCM43xx_PHYTYPE_A
:
snprintf
(
buf
,
PAGE_SIZE
,
"A"
);
...
...
@@ -364,7 +364,7 @@ static ssize_t bcm43xx_attr_phymode_show(struct device *dev,
default:
assert
(
0
);
}
bcm43xx_unlock_noirq
(
bcm
);
mutex_unlock
(
&
(
bcm
)
->
mutex
);
return
count
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录