Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
834695ee
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看板
提交
834695ee
编写于
8月 03, 2006
作者:
J
Jeff Garzik
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'upstream-fixes' into upstream
上级
57fa442c
c54772e7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
19 deletion
+13
-19
drivers/net/myri10ge/myri10ge.c
drivers/net/myri10ge/myri10ge.c
+11
-13
drivers/net/phy/phy.c
drivers/net/phy/phy.c
+2
-6
未找到文件。
drivers/net/myri10ge/myri10ge.c
浏览文件 @
834695ee
...
...
@@ -177,6 +177,7 @@ struct myri10ge_priv {
struct
work_struct
watchdog_work
;
struct
timer_list
watchdog_timer
;
int
watchdog_tx_done
;
int
watchdog_tx_req
;
int
watchdog_resets
;
int
tx_linearized
;
int
pause
;
...
...
@@ -448,6 +449,7 @@ static int myri10ge_load_hotplug_firmware(struct myri10ge_priv *mgp, u32 * size)
struct
mcp_gen_header
*
hdr
;
size_t
hdr_offset
;
int
status
;
unsigned
i
;
if
((
status
=
request_firmware
(
&
fw
,
mgp
->
fw_name
,
dev
))
<
0
)
{
dev_err
(
dev
,
"Unable to load %s firmware image via hotplug
\n
"
,
...
...
@@ -479,18 +481,12 @@ static int myri10ge_load_hotplug_firmware(struct myri10ge_priv *mgp, u32 * size)
goto
abort_with_fw
;
crc
=
crc32
(
~
0
,
fw
->
data
,
fw
->
size
);
if
(
mgp
->
tx
.
boundary
==
2048
)
{
/* Avoid PCI burst on chipset with unaligned completions. */
int
i
;
__iomem
u32
*
ptr
=
(
__iomem
u32
*
)
(
mgp
->
sram
+
MYRI10GE_FW_OFFSET
);
for
(
i
=
0
;
i
<
fw
->
size
/
4
;
i
++
)
{
__raw_writel
(((
u32
*
)
fw
->
data
)[
i
],
ptr
+
i
);
wmb
();
}
}
else
{
myri10ge_pio_copy
(
mgp
->
sram
+
MYRI10GE_FW_OFFSET
,
fw
->
data
,
fw
->
size
);
for
(
i
=
0
;
i
<
fw
->
size
;
i
+=
256
)
{
myri10ge_pio_copy
(
mgp
->
sram
+
MYRI10GE_FW_OFFSET
+
i
,
fw
->
data
+
i
,
min
(
256U
,
(
unsigned
)(
fw
->
size
-
i
)));
mb
();
readb
(
mgp
->
sram
);
}
/* corruption checking is good for parity recovery and buggy chipset */
memcpy_fromio
(
fw
->
data
,
mgp
->
sram
+
MYRI10GE_FW_OFFSET
,
fw
->
size
);
...
...
@@ -2547,7 +2543,8 @@ static void myri10ge_watchdog_timer(unsigned long arg)
mgp
=
(
struct
myri10ge_priv
*
)
arg
;
if
(
mgp
->
tx
.
req
!=
mgp
->
tx
.
done
&&
mgp
->
tx
.
done
==
mgp
->
watchdog_tx_done
)
mgp
->
tx
.
done
==
mgp
->
watchdog_tx_done
&&
mgp
->
watchdog_tx_req
!=
mgp
->
watchdog_tx_done
)
/* nic seems like it might be stuck.. */
schedule_work
(
&
mgp
->
watchdog_work
);
else
...
...
@@ -2556,6 +2553,7 @@ static void myri10ge_watchdog_timer(unsigned long arg)
jiffies
+
myri10ge_watchdog_timeout
*
HZ
);
mgp
->
watchdog_tx_done
=
mgp
->
tx
.
done
;
mgp
->
watchdog_tx_req
=
mgp
->
tx
.
req
;
}
static
int
myri10ge_probe
(
struct
pci_dev
*
pdev
,
const
struct
pci_device_id
*
ent
)
...
...
drivers/net/phy/phy.c
浏览文件 @
834695ee
...
...
@@ -419,9 +419,8 @@ void phy_start_machine(struct phy_device *phydev,
/* phy_stop_machine
*
* description: Stops the state machine timer, sets the state to
* UP (unless it wasn't up yet), and then frees the interrupt,
* if it is in use. This function must be called BEFORE
* description: Stops the state machine timer, sets the state to UP
* (unless it wasn't up yet). This function must be called BEFORE
* phy_detach.
*/
void
phy_stop_machine
(
struct
phy_device
*
phydev
)
...
...
@@ -433,9 +432,6 @@ void phy_stop_machine(struct phy_device *phydev)
phydev
->
state
=
PHY_UP
;
spin_unlock
(
&
phydev
->
lock
);
if
(
phydev
->
irq
!=
PHY_POLL
)
phy_stop_interrupts
(
phydev
);
phydev
->
adjust_state
=
NULL
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录