From: Daniele Venzano <webvenza@libero.it>
To: netdev@oss.sgi.com, jgarzik@pobox.com
Subject: [PATCH 1/1] Fix default phy selection after initialization
Date: Wed, 9 Mar 2005 09:26:57 +0100 (CET) [thread overview]
Message-ID: <20050309082657.14465.18016@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
Previous patch correct only 99% of the time, the default phy can change during
normal operation, but the mii_info struct wosn't updated.
With the attached patch it is (to be applied on top of previous).
For the locking issue it seems that not only sis900_timer is affected. Mii
access is scattered all over the driver without locking, so I think there
is need of a lot more work.
Signed-off-by: Daniele Venzano <webvenza@libero.it>
[-- Attachment #2: Type: text/plain, Size: 690 bytes --]
Index: sis900.c
===================================================================
--- a/drivers/net/sis900.c (revision 98)
+++ b/drivers/net/sis900.c (revision 99)
@@ -514,8 +514,6 @@ static int __devinit sis900_probe(struct
goto err_out_unregister;
}
- sis_priv->mii_info.phy_id = sis_priv->cur_phy;
-
/* save our host bridge revision */
dev = pci_get_device(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_630, NULL);
if (dev) {
@@ -725,6 +723,8 @@ static u16 sis900_default_phy(struct net
net_dev->name,sis_priv->cur_phy);
}
+ sis_priv->mii_info.phy_id = sis_priv->cur_phy;
+
status = mdio_read(net_dev, sis_priv->cur_phy, MII_CONTROL);
status &= (~MII_CNTL_ISOLATE);
reply other threads:[~2005-03-09 8:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050309082657.14465.18016@localhost.localdomain \
--to=webvenza@libero.it \
--cc=jgarzik@pobox.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox