All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: akpm@osdl.org, grischa@bitclown.de
Cc: Netdev <netdev@oss.sgi.com>
Subject: Re: [patch 1/1] sis900 transceiver fix
Date: Thu, 27 May 2004 14:09:52 -0400	[thread overview]
Message-ID: <40B62EF0.2050003@pobox.com> (raw)
In-Reply-To: <200405250938.i4P9cor08103@mail.osdl.org>

akpm@osdl.org wrote:
> From: Grischa Jacobs <grischa@bitclown.de>
> 
> I had the same messages about unknown PHY transceivers and very poor transfer
> rates.  I figured that all but one of the transceivers had the status bit
> MII_STAT_FAULT set.  Selecting that one solved my problems.
> 
> I posted this and the patch already a while ago but didn't get any response. 
> It would be nice if a few people could check whether this fixes/breaks it for
> them.
> 
> I just checked it with 2.6.6-rc3 and the problem is still there and gets
> solved by the attached patch.
> 
> 
> ---
> 
>  25-akpm/drivers/net/sis900.c |    5 +++++
>  1 files changed, 5 insertions(+)
> 
> diff -puN drivers/net/sis900.c~sis900-xcvr-fix drivers/net/sis900.c
> --- 25/drivers/net/sis900.c~sis900-xcvr-fix	Wed May 19 14:51:16 2004
> +++ 25-akpm/drivers/net/sis900.c	Wed May 19 14:51:16 2004
> @@ -18,6 +18,7 @@
>     preliminary Rev. 1.0 Jan. 18, 1998
>     http://www.sis.com.tw/support/databook.htm
>  
> +               Jan.  7 2004 Grischa Jacobs - Skip mii's with MII_STAT_FAULT set
>     Rev 1.08.07 Nov.  2 2003 Daniele Venzano <webvenza@libero.it> add suspend/resume support
>     Rev 1.08.06 Sep. 24 2002 Mufasa Yang bug fix for Tx timeout & add SiS963 support
>     Rev 1.08.05 Jun.  6 2002 Mufasa Yang bug fix for read_eeprom & Tx descriptor over-boundary
> @@ -546,6 +547,10 @@ static int __init sis900_mii_probe (stru
>  			/* the mii is not accessible, try next one */
>  			continue;
>  		
> +		if (mii_status & MII_STAT_FAULT)
> +			/* ignore mii with the fault bit set */
> +			continue;

Rejected.  The driver should just be checking for 0xffff like the other 
drivers.

Please always cc netdev@oss.sgi.com for net driver patches, for greater 
review (and also to increase the number of people that will harrass me 
when a patch isn't speedily applied)

	Jeff

           reply	other threads:[~2004-05-27 18:09 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200405250938.i4P9cor08103@mail.osdl.org>]

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=40B62EF0.2050003@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=akpm@osdl.org \
    --cc=grischa@bitclown.de \
    --cc=netdev@oss.sgi.com \
    /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.