All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Vanoni <vanonim@dial.eunet.ch>
To: Andrew Morton <akpm@zip.com.au>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: 2.4.9-pre13aa1 & 2.4.9-pre14: SMP + 3c59x: feature/bug?
Date: Sat, 22 Sep 2001 23:37:16 +0000	[thread overview]
Message-ID: <3BAD20AC.55329F14@dial.eunet.ch> (raw)
In-Reply-To: <3BACF2E7.3AFC201E@dial.eunet.ch> <3BACEFD5.6EB51CA3@zip.com.au>

Andrew Morton wrote:
> 
> Mario Vanoni wrote:
> >
> > Dual SMP PIII550 BX400 1024MB mem
> > according "Documentation/Changes" all >= update.
> >
> > Both kernels compiled *_without_* modules:
> > lilo.conf with append="ether=0,0,3,eth0".
> > Ethernet doesn't work anymore,
> > with 2.2.19pre#aa#, 2.2.20pre#aa# perfect.
> >
> > Both kernels compiled with 3c59x as module:
> > modules.conf:
> > alias eth0 3c59x
> > options 3c59x options=3
> > obviously without append in lilo.conf.
> > Ethernet works as usual.
> >
> > No difference on all other application.
> 
> Net drivers which use the new alloc_etherdev API do not
> support the `ether=' kernel boot option.
> 
> Going back to the old init_etherdev() API will make it
> work again.
> 
> --- linux-2.4.10-pre14/drivers/net/3c59x.c      Sat Sep 22 10:41:53 2001
> +++ linux-akpm/drivers/net/3c59x.c      Sat Sep 22 12:59:07 2001
> @@ -984,7 +984,7 @@ static int __devinit vortex_probe1(struc
> 
>         print_name = pdev ? pdev->slot_name : "3c59x";
> 
> -       dev = alloc_etherdev(sizeof(*vp));
> +       dev = init_etherdev(NULL, sizeof(*vp));
>         retval = -ENOMEM;
>         if (!dev) {
>                 printk (KERN_ERR PFX "unable to allocate etherdev, aborting\n");
> @@ -1328,9 +1328,6 @@ static int __devinit vortex_probe1(struc
>                 pci_save_state(vp->pdev, vp->power_state);
>                 acpi_set_WOL(dev);
>         }
> -       retval = register_netdev(dev);
> -       if (retval == 0)
> -               return 0;
> 
>  free_ring:
>         pci_free_consistent(pdev,
> @@ -1341,6 +1338,7 @@ free_ring:
>  free_region:
>         if (vp->must_free_region)
>                 release_region(ioaddr, vci->io_size);
> +       unregister_netdevice(dev);
>         kfree (dev);
>         printk(KERN_ERR PFX "vortex_probe1 fails.  Returns %d\n", retval);
>  out:

Does not work, patched against 2.4.9-pre14aa1.

Returned (grin ...) ... to modules.

Regards

Mario, not in lkml.

  reply	other threads:[~2001-09-22 21:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-22 20:21 2.4.9-pre13aa1 & 2.4.9-pre14: SMP + 3c59x: feature/bug? Mario Vanoni
2001-09-22 20:08 ` Andrew Morton
2001-09-22 23:37   ` Mario Vanoni [this message]
2001-09-24  0:54   ` 2.4.10: 3c59x: buggy? Mario Vanoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BAD20AC.55329F14@dial.eunet.ch \
    --to=vanonim@dial.eunet.ch \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.