From: Daniele Venzano <webvenza@libero.it>
To: Dominik Karall <dominik.karall@gmx.net>
Cc: Linux Kernel ML <linux-kernel@vger.kernel.org>
Subject: Re: problem with sis900
Date: Sat, 15 May 2004 09:12:34 +0200 [thread overview]
Message-ID: <20040515071233.GB9289@picchio.gall.it> (raw)
In-Reply-To: <200405132002.56402.dominik.karall@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 377 bytes --]
On Thu, May 13, 2004 at 08:02:56PM +0200, Dominik Karall wrote:
> Sorry, but the patch does not help, same error messages in log, and can't
> change to full-duplex mode.
My fault, the linked list gets filled in reverse, address 1 is at the
end.
With the attached patch I should got it right...
--
-----------------------------
Daniele Venzano
Web: http://teg.homeunix.org
[-- Attachment #2: sis900-phy.diff --]
[-- Type: text/plain, Size: 1221 bytes --]
--- linux-2.6.5/drivers/net/sis900.c 2004-04-04 22:31:55.000000000 +0200
+++ linux-irda-2.6.5/drivers/net/sis900.c 2004-05-15 09:10:42.000000000 +0200
@@ -640,13 +640,16 @@
static u16 sis900_default_phy(struct net_device * net_dev)
{
struct sis900_private * sis_priv = net_dev->priv;
- struct mii_phy *phy = NULL, *phy_home = NULL, *default_phy = NULL;
+ struct mii_phy *phy = NULL, *phy_home = NULL, *default_phy = NULL, *phy_one = NULL;
u16 status;
for( phy=sis_priv->first_mii; phy; phy=phy->next ){
status = mdio_read(net_dev, phy->phy_addr, MII_STATUS);
status = mdio_read(net_dev, phy->phy_addr, MII_STATUS);
+ if(phy->phy_addr == 1)
+ phy_one = phy;
+
/* Link ON & Not select deafalut PHY */
if ( (status & MII_STAT_LINK) && !(default_phy) )
default_phy = phy;
@@ -665,6 +668,10 @@
default_phy = sis_priv->first_mii;
if( sis_priv->mii != default_phy ){
+ if(phy_one)
+ default_phy = phy_one;
+ else
+ printk(KERN_WARNING "Detected PHY not present in linked list!!\n");
sis_priv->mii = default_phy;
sis_priv->cur_phy = default_phy->phy_addr;
printk(KERN_INFO "%s: Using transceiver found at address %d as default\n", net_dev->name,sis_priv->cur_phy);
next prev parent reply other threads:[~2004-05-15 7:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-11 18:28 problem with sis900 driver 2.6.5 + mike
2004-05-11 18:41 ` Luiz Fernando N. Capitulino
2004-05-11 21:40 ` Daniele Venzano
2004-05-12 9:37 ` mike
2004-05-11 19:01 ` problem with sis900 Dominik Karall
2004-05-11 21:45 ` Daniele Venzano
2004-05-11 22:30 ` Dominik Karall
2004-05-13 15:17 ` Daniele Venzano
2004-05-13 18:02 ` Dominik Karall
2004-05-15 7:12 ` Daniele Venzano [this message]
2004-05-15 12:12 ` Dominik Karall
2004-05-15 16:56 ` Daniele Venzano
2004-05-16 11:21 ` Dominik Karall
2004-05-17 11:35 ` Dominik Karall
2004-05-12 0:50 ` problem with sis900 driver 2.6.5 + Aristeu Sergio Rozanski Filho
2004-05-12 10:18 ` mike
2004-05-12 10:19 ` mike
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=20040515071233.GB9289@picchio.gall.it \
--to=webvenza@libero.it \
--cc=dominik.karall@gmx.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®