Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 26 Feb 2002 12:59:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 26 Feb 2002 12:59:37 -0500 Received: from charger.oldcity.dca.net ([207.245.82.76]:6564 "EHLO charger.oldcity.dca.net") by vger.kernel.org with ESMTP id ; Tue, 26 Feb 2002 12:58:26 -0500 Date: Tue, 26 Feb 2002 12:58:19 -0500 From: christophe =?iso-8859-15?Q?barb=E9?= To: lkml Subject: Re: 3c59x and cardbus Message-ID: <20020226175819.GE803@ufies.org> Mail-Followup-To: lkml In-Reply-To: <20020226173038.GD803@ufies.org> <3C7BC897.8D607D08@zip.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EXKGNeO8l0xGFBjy" Content-Disposition: inline In-Reply-To: <3C7BC897.8D607D08@zip.com.au> User-Agent: Mutt/1.3.27i X-Operating-System: debian SID Gnu/Linux 2.4.18 on i586 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --EXKGNeO8l0xGFBjy Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 26, 2002 at 09:40:39AM -0800, Andrew Morton wrote: > christophe barb=E9 wrote: > >=20 > > When you remove a 3c59x-based cardbus, the fonction vortex_remove_one > > is called and this function end with kfree(dev). > >=20 > > I was looking why enable_wol loose its value after a remove/insert cycle > > but this value is store in the private part of dev so it's free with > > dev. > >=20 > > The driver is not unloaded during the remove/insert cycle so it's a > > kernel space problem. >=20 > Yes, all driver state is destroyed when the hardware is removed. > Look at it the other way: if this was not done, the driver would > have a memory leak. Yes but as I said the driver is not unloaded. So when I reinsert the card the kernel himself take care of it (no way to give an option) but the result is that the enable_wol is lost. >=20 > I guess it would be possible to retain some state across insertion > cycles, keyed off the MAC address or something. What's it needed > for? >=20 >=20 > - --=20 Christophe Barb=E9 GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E Cats seem go on the principle that it never does any harm to ask for what you want. --Joseph Wood Krutch --EXKGNeO8l0xGFBjy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Pour information voir http://www.gnupg.org iD8DBQE8e8y7j0UvHtcstB4RAgZnAJ9n7KrXZJimjAtYkdLyhIwZeMNtjQCgls+g RITloGNwsKYAFzzp0bv7GZY= =Uoqh -----END PGP SIGNATURE----- --EXKGNeO8l0xGFBjy-- - 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/