All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Luethi <rl@hellgate.ch>
To: Pavel Machek <pavel@ucw.cz>
Cc: jgarzik@pobox.com,
	Rusty trivial patch monkey Russell  <trivial@rustcorp.com.au>,
	kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [trivial] no mili-bits-per-second for via-rhine
Date: Wed, 2 Jun 2004 10:40:25 +0200	[thread overview]
Message-ID: <20040602084025.GA9626@k3.hellgate.ch> (raw)
In-Reply-To: <20040601214345.GA32700@elf.ucw.cz>

FYI, I have a patch for 2.6 in my out queue which deletes the
option/full_duplex code (including the part below) entirely. Nobody
complained when it was unusable for the longest time (kind of fixed
recently), and the code is still a mess. People using 2.6 should use
ethtool _if_ they need to force media, because that works.

So as via-rhine maintainer, I recommend applying to 2.4 and leaving
2.6 as is.

FWIW cleaning up all the printed messages in via-rhine is on my todo
list.

Roger

On Tue, 01 Jun 2004 23:43:45 +0200, Pavel Machek wrote:
> Hi!
> 
> via-rhine claims to support 100 mili-bits-per-second mode and one
> place and 100 mega-bit-second mode ("100 mega-bit-seconds of storage
> for only $1?"). This cleans it up.
> 
> 								Pavel
> 
> --- tmp/linux/drivers/net/via-rhine.c	2004-05-20 23:08:19.000000000 +0200
> +++ linux/drivers/net/via-rhine.c	2004-05-20 23:11:26.000000000 +0200
> @@ -863,12 +863,12 @@
>  		if (np->default_port & 0x330) {
>  			/* FIXME: shouldn't someone check this variable? */
>  			/* np->medialock = 1; */
> -			printk(KERN_INFO "  Forcing %dMbs %s-duplex operation.\n",
> +			printk(KERN_INFO "  Forcing %dMbps %s-duplex operation.\n",
>  				   (option & 0x300 ? 100 : 10),
>  				   (option & 0x220 ? "full" : "half"));
>  			if (np->mii_cnt)
>  				mdio_write(dev, np->phys[0], MII_BMCR,
> -						   ((option & 0x300) ? 0x2000 : 0) |  /* 100mbps? */
> +						   ((option & 0x300) ? 0x2000 : 0) |  /* 100Mbps? */
>  						   ((option & 0x220) ? 0x0100 : 0));  /* Full duplex? */
>  		}
>  	}

      reply	other threads:[~2004-06-02  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 21:43 [trivial] no mili-bits-per-second for via-rhine Pavel Machek
2004-06-02  8:40 ` Roger Luethi [this message]

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=20040602084025.GA9626@k3.hellgate.ch \
    --to=rl@hellgate.ch \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=trivial@rustcorp.com.au \
    /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.