]> git.hungrycats.org Git - linux/commit
[netdrvr sis900] add suspend/resume support
authorDaniele Venzano <webvenza@libero.it>
Mon, 29 Dec 2003 17:59:18 +0000 (12:59 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 29 Dec 2003 17:59:18 +0000 (12:59 -0500)
commit4a493b70b50b77664842c7810f4ff1050f999df9
tree628a6cff147f57b4490674992a081e50e107173a
parent3a8d53478ed24a2d2df794986f7f1aab8e6c36b7
[netdrvr sis900] add suspend/resume support

The attached patch adds support for suspend/resume to the sis900 driver.
With this patch on resume the NIC is fully configured and operational,
before a module reload was needed because of the complete lack of
suspend/resume callbacks.

I added two functions, sis900_suspend and sis900_resume, with their
pointers in struct pci_driver. A vector of 16 u32 was then needed to the
to keep PCI data during suspend. I added it in struct sis900_private.
I updated the revision number to reflect my changes.
Looking at the code I also killed three typos.

The patch doesn't touch any other code.

Since I don't know anything on ethernet drivers the rule 'works for me'
is fully valid.
drivers/net/sis900.c