Thank you, I have done something similar and that solve it in my case at
least. This driver was clearly not designed for cardbus.
I am still looking for my resume/suspend problem.
Hope to find the solution soon.
Christophe
On Tue, Feb 26, 2002 at 10:51:08AM -0800, Andrew Morton wrote:
> christophe barbé wrote:
> >
> > Ok I have found why.
> > When I resinsert the card, the driver give it a new id (this driver
> > supports multiple cards) and the option as I set it is only defined for
> > the card #0. I would expect that the driver give the same id back.
> >
>
> hrm. OK, hotplugging and slot-positional module parameters weren't
> designed to live together.
>
> This should fix it for single cards. For multiple cards, you'll
> have to make sure you eject them in reverse scan order :)
>
> Index: drivers/net/3c59x.c
> ===================================================================
> RCS file: /opt/cvs/lk/drivers/net/3c59x.c,v
> retrieving revision 1.74.2.7
> diff -u -r1.74.2.7 3c59x.c
> --- drivers/net/3c59x.c 2002/02/13 21:03:03 1.74.2.7
> +++ drivers/net/3c59x.c 2002/02/26 18:49:24
> @@ -2898,6 +2898,9 @@
> BUG();
> }
>
> + if (vp->card_idx == vortex_cards_found)
> + vortex_cards_found--;
> +
> vp = dev->priv;
>
> /* AKPM: FIXME: we should have
>
>
> -
-- Christophe Barbé <christophe.barbe@ufies.org> GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41EImagination is more important than knowledge. Albert Einstein, On Science
This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:31 EST