Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
9499de20
Commit
9499de20
authored
Sep 27, 2002
by
Manfred Spraul
Committed by
Jeff Garzik
Sep 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/net/natsemi.c: lengthen EEPROM timeout, and always warn about all timeouts
parent
edc6f04f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
drivers/net/natsemi.c
drivers/net/natsemi.c
+8
-6
No files found.
drivers/net/natsemi.c
View file @
9499de20
...
@@ -127,6 +127,8 @@
...
@@ -127,6 +127,8 @@
* hands_off instead of playing with netif_device_{de,a}ttach
* hands_off instead of playing with netif_device_{de,a}ttach
(Manfred Spraul)
(Manfred Spraul)
* be sure to write the MAC back to the chip (Manfred Spraul)
* be sure to write the MAC back to the chip (Manfred Spraul)
* lengthen EEPROM timeout, and always warn about timeouts
(Manfred Spraul)
TODO:
TODO:
* big endian support with CFG:BEM instead of cpu_to_le32
* big endian support with CFG:BEM instead of cpu_to_le32
...
@@ -1001,7 +1003,7 @@ static void natsemi_reset(struct net_device *dev)
...
@@ -1001,7 +1003,7 @@ static void natsemi_reset(struct net_device *dev)
break
;
break
;
udelay
(
5
);
udelay
(
5
);
}
}
if
(
i
==
NATSEMI_HW_TIMEOUT
&&
netif_msg_hw
(
np
)
)
{
if
(
i
==
NATSEMI_HW_TIMEOUT
)
{
printk
(
KERN_INFO
"%s: reset did not complete in %d usec.
\n
"
,
printk
(
KERN_INFO
"%s: reset did not complete in %d usec.
\n
"
,
dev
->
name
,
i
*
5
);
dev
->
name
,
i
*
5
);
}
else
if
(
netif_msg_hw
(
np
))
{
}
else
if
(
netif_msg_hw
(
np
))
{
...
@@ -1038,16 +1040,16 @@ static void natsemi_reload_eeprom(struct net_device *dev)
...
@@ -1038,16 +1040,16 @@ static void natsemi_reload_eeprom(struct net_device *dev)
writel
(
EepromReload
,
dev
->
base_addr
+
PCIBusCfg
);
writel
(
EepromReload
,
dev
->
base_addr
+
PCIBusCfg
);
for
(
i
=
0
;
i
<
NATSEMI_HW_TIMEOUT
;
i
++
)
{
for
(
i
=
0
;
i
<
NATSEMI_HW_TIMEOUT
;
i
++
)
{
udelay
(
50
);
if
(
!
(
readl
(
dev
->
base_addr
+
PCIBusCfg
)
&
EepromReload
))
if
(
!
(
readl
(
dev
->
base_addr
+
PCIBusCfg
)
&
EepromReload
))
break
;
break
;
udelay
(
5
);
}
}
if
(
i
==
NATSEMI_HW_TIMEOUT
&&
netif_msg_hw
(
np
)
)
{
if
(
i
==
NATSEMI_HW_TIMEOUT
)
{
printk
(
KERN_INFO
"%s: EEPROM did not reload in %d usec.
\n
"
,
printk
(
KERN_INFO
"%s: EEPROM did not reload in %d usec.
\n
"
,
dev
->
name
,
i
*
5
);
dev
->
name
,
i
*
5
0
);
}
else
if
(
netif_msg_hw
(
np
))
{
}
else
if
(
netif_msg_hw
(
np
))
{
printk
(
KERN_DEBUG
"%s: EEPROM reloaded in %d usec.
\n
"
,
printk
(
KERN_DEBUG
"%s: EEPROM reloaded in %d usec.
\n
"
,
dev
->
name
,
i
*
5
);
dev
->
name
,
i
*
5
0
);
}
}
}
}
...
@@ -1063,7 +1065,7 @@ static void natsemi_stop_rxtx(struct net_device *dev)
...
@@ -1063,7 +1065,7 @@ static void natsemi_stop_rxtx(struct net_device *dev)
break
;
break
;
udelay
(
5
);
udelay
(
5
);
}
}
if
(
i
==
NATSEMI_HW_TIMEOUT
&&
netif_msg_hw
(
np
)
)
{
if
(
i
==
NATSEMI_HW_TIMEOUT
)
{
printk
(
KERN_INFO
"%s: Tx/Rx process did not stop in %d usec.
\n
"
,
printk
(
KERN_INFO
"%s: Tx/Rx process did not stop in %d usec.
\n
"
,
dev
->
name
,
i
*
5
);
dev
->
name
,
i
*
5
);
}
else
if
(
netif_msg_hw
(
np
))
{
}
else
if
(
netif_msg_hw
(
np
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment