[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.WNT.4.64.0907221256420.13196@ppwaskie-MOBL2.amr.corp.intel.com>
Date: Wed, 22 Jul 2009 13:00:50 -0700 (Pacific Daylight Time)
From: "Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@...el.com>
To: Andy Gospodarek <andy@...yhouse.net>
cc: Alexander Duyck <alexander.duyck@...il.com>,
"Ronciak, John" <john.ronciak@...el.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"Allan, Bruce W" <bruce.w.allan@...el.com>,
"Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@...el.com>,
"stable@...nel.org" <stable@...nel.org>
Subject: Re: [PATCH] igb/e1000e/e1000/e100: make wol usable
> [PATCH] ixgbe: remove unnecessary call to device_init_wakeup
>
> Calls to device_init_wakeup should not be necessary in drivers that use
> device_set_wakeup_enable since pci_pm_init will set the can_wakeup flag
> for the device when initialized.
>
> I can't test this since I don't have any of the 82599 KX4 interfaces
> (the only ones capable of WOL), but I did instrument ixgbe_probe and
> know that can_wakeup=1 when device_init_wakeup is removed.
>
> Signed-off-by: Andy Gospodarek <andy@...yhouse.net>
>
> ---
>
> ixgbe_main.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
> index 79f60e8..2f15abf 100644
> --- a/drivers/net/ixgbe/ixgbe_main.c
> +++ b/drivers/net/ixgbe/ixgbe_main.c
> @@ -5640,7 +5640,6 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
> adapter->wol = 0;
> break;
> }
> - device_init_wakeup(&adapter->pdev->dev, true);
> device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol);
>
> /* pick up the PCI bus settings for reporting later */
I need to rebuild one of my boxes in the lab that I do WoL testing on for
ixgbe devices. That shouldn't take me long, and I'll test this. If it
works as expected, I'll send my ack.
Cheers,
-PJ Waskiewicz
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists