[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080916152148.GA7617@alpha.franken.de>
Date: Tue, 16 Sep 2008 17:21:48 +0200
From: tsbogend@...ha.franken.de (Thomas Bogendoerfer)
To: Arjan van de Ven <arjan@...radead.org>
Cc: Adrian Bunk <bunk@...nel.org>, Theodore Tso <tytso@....edu>,
Jarek Poplawski <jarkao2@...il.com>,
David Miller <davem@...emloft.net>, jeff@...zik.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [git patches] net driver fixes
On Tue, Sep 16, 2008 at 07:48:02AM -0700, Arjan van de Ven wrote:
> not sure; just we need to catch doing pci_disable_device on a
> non-enabled device as a WARN_ON.
the pci_disable_device() is done on an enabled device, so your
new WARN_ON wouldn't trigger.
> and the patch looks quite wrong, the real answer should be to do the
> enable in open() :-)
I thought about the solution, but the pci device is completely setup
and enabled in the init function so disabling it at that point and
enabling it in open() again sounds silly to me. pci_enable_enable/disable
is already done in .init/.remove and .suspend/.resume, so it looked
more obviuos to not let close() do the pci_disable_device().
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea. [ RFC1925, 2.3 ]
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists