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
nexedi
linux
Commits
3a6fdfa4
Commit
3a6fdfa4
authored
Mar 11, 2002
by
Arjan van de Ven
Committed by
Jeff Garzik
Mar 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update eepro100 net driver to enable/disable its software timer
at suspend/resume time.
parent
39a70d79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
drivers/net/eepro100.c
drivers/net/eepro100.c
+4
-0
No files found.
drivers/net/eepro100.c
View file @
3a6fdfa4
...
...
@@ -2206,6 +2206,8 @@ static int eepro100_suspend(struct pci_dev *pdev, u32 state)
if
(
!
netif_running
(
dev
))
return
0
;
del_timer_sync
(
&
sp
->
timer
);
netif_device_detach
(
dev
);
outl
(
PortPartialReset
,
ioaddr
+
SCBPort
);
...
...
@@ -2237,6 +2239,8 @@ static int eepro100_resume(struct pci_dev *pdev)
sp
->
rx_mode
=
-
1
;
sp
->
flow_ctrl
=
sp
->
partner
=
0
;
set_rx_mode
(
dev
);
sp
->
timer
.
expires
=
RUN_AT
(
2
*
HZ
);
add_timer
(
&
sp
->
timer
);
return
0
;
}
#endif
/* CONFIG_PM */
...
...
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