From: Valerie Henson <val_henson@linux.intel.com>
To: Pozsar Balazs <pozsy@uhulinux.hu>
Cc: Jeff Garzik <jgarzik@pobox.com>,
Prakash Punnoor <prakash@punnoor.de>, Jiri Benc <jbenc@suse.cz>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC/PATCH] Fixes for ULi5261 (tulip driver)
Date: Tue, 22 Aug 2006 23:28:21 -0700 [thread overview]
Message-ID: <20060823062821.GD10658@goober> (raw)
In-Reply-To: <20060821090351.GB19425@ojjektum.uhulinux.hu>
Hi Pozsar,
On Mon, Aug 21, 2006 at 11:03:51AM +0200, Pozsar Balazs wrote:
>
> Does this seem better?
>
> Signed-off-by: Pozsar Balazs <pozsy@uhulinux.hu>
>
> Fix uli526x initialization
>
>
> --- a/drivers/net/tulip/uli526x.c 2006-08-21 10:57:43.000000000 +0200
> +++ a/drivers/net/tulip/uli526x.c 2006-08-21 11:01:37.000000000 +0200
> @@ -486,6 +486,7 @@
> u8 phy_tmp;
> u16 phy_value;
> u16 phy_reg_reset;
> + int resetwait = 10;
>
> ULI526X_DBUG(0, "uli526x_init()", 0);
>
> @@ -515,7 +516,11 @@
> phy_reg_reset = phy_read(db->ioaddr, db->phy_addr, 0, db->chip_id);
> phy_reg_reset = (phy_reg_reset | 0x8000);
> phy_write(db->ioaddr, db->phy_addr, 0, phy_reg_reset, db->chip_id);
> - udelay(500);
> + while (resetwait-- > 0) {
> + if (!(phy_read(db->ioaddr, db->phy_addr, 0, db->chip_id) & 0x8000))
> + break;
> + udelay(500);
> + }
>
> /* Process Phyxcer Media Mode */
> uli526x_set_phyxcer(db);
Thanks for writing up this patch. udelay(500) seems a touch
heavyweight, however. Would you mind experimenting a bit to see what
the delay typically ends up being? Just add a KERN_DEBUG message
printing out resetwait and then fiddle with the udelay granularity.
-VAL
next prev parent reply other threads:[~2006-08-23 6:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 10:49 [RFC/PATCH] Fixes for ULi5261 (tulip driver) Jiri Benc
2006-08-15 9:25 ` Pozsar Balazs
2006-08-16 17:11 ` Jiri Benc
2006-08-16 17:43 ` Pozsar Balazs
2006-08-16 18:02 ` Prakash Punnoor
2006-08-16 19:53 ` Pozsar Balazs
2006-08-19 0:16 ` Valerie Henson
2006-08-19 6:15 ` Pozsar Balazs
2006-08-19 14:36 ` Jeff Garzik
2006-08-21 9:03 ` Pozsar Balazs
2006-08-23 6:28 ` Valerie Henson [this message]
2006-08-23 9:19 ` Pozsar Balazs
2006-08-23 16:56 ` Valerie Henson
2006-08-23 23:27 ` Nigel Cunningham
2006-08-24 0:14 ` Nigel Cunningham
2006-08-23 16:59 ` Prakash Punnoor
2006-08-24 17:23 ` Valerie Henson
2006-08-28 11:40 ` Prakash Punnoor
-- strict thread matches above, loose matches on Subject: below --
2005-04-29 9:42 Jiri Benc
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=20060823062821.GD10658@goober \
--to=val_henson@linux.intel.com \
--cc=jbenc@suse.cz \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pozsy@uhulinux.hu \
--cc=prakash@punnoor.de \
/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.