Re: 2.4.6.-ac2: Problems with eepro100

Martin Knoblauch (Martin.Knoblauch@TeraPort.de)
Wed, 11 Jul 2001 13:01:37 +0200


Jeff Garzik wrote:
>
> On Mon, 9 Jul 2001, Kai Germaschewski wrote:
>
> > On Mon, 9 Jul 2001, Patrick Mochel wrote:
> >
>
> Do a register dump of working and dead-after-PM-transition, including
> PCI config registers, and look for differences. Also look for
> differences in your host and PCI-PCI bridge PCI config registers.

Instructions on how to do the dumps? Sorry, I have not been that deep
into these matters until now :-)

Just as an experiment, I modified the 246-ac2 eepro100.c driver to
never set the devive into D2 mode. As a result, I can now ifconfig
down/up as much as I want without killing the network. So I guess it is
really PM related.

*** eepro100.c-ac2 Mon Jul 9 12:30:53 2001
--- eepro100.c Wed Jul 11 12:47:07 2001
***************
*** 780,782 ****
/* Put chip into power state D2 until we open() it. */
! pci_set_power_state(pdev, 2);

--- 780,782 ----
/* Put chip into power state D2 until we open() it. */
! pci_set_power_state(pdev, 0); /*MKN*/

***************
*** 1835,1837 ****

! pci_set_power_state(sp->pdev, 2);

--- 1835,1837 ----

! pci_set_power_state(sp->pdev, 0); /* MKN */

Martin

-- 
------------------------------------------------------------------
Martin Knoblauch         |    email:  Martin.Knoblauch@TeraPort.de
TeraPort GmbH            |    Phone:  +49-89-510857-309
C+ITS                    |    Fax:    +49-89-510857-111
http://www.teraport.de   |    Mobile: +49-170-4904759
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/