2001-07-02 16:03:29

by Jeff Garzik

[permalink] [raw]
Subject: Re: WOL with 3c59x and 2.4.6-pre6 breaks WOL

Andrew Morton wrote:
> --- linux-2.4.6-pre8/drivers/pci/pci.c Sun Jul 1 16:11:25 2001
> +++ linux-akpm/drivers/pci/pci.c Tue Jul 3 01:28:35 2001
> @@ -425,7 +425,7 @@ int pci_enable_wake(struct pci_dev *dev,
>
> if (enable) value |= PCI_PM_CTRL_PME_STATUS;
> else value &= ~PCI_PM_CTRL_PME_STATUS;
> -
> + value |= PCI_PM_CTRL_PME_ENABLE;
> pci_write_config_word(dev, pm + PCI_PM_CTRL, value);
>
> return 0;

wrong but it seems you spotted a bug in the code -- set/clear _ENABLE
right above your change here. maybe read and write _STATUS
unconditionally, for paranoia.

--
Jeff Garzik | The LSB is a bunch of crap.
Building 1024 | E-mail for details.
MandrakeSoft |