netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Dooks <ben-linux@fluff.org>
To: netdev@vger.kernel.org
Cc: Jeff Garzik <jeff@garzik.org>, Ben Dooks <ben-linux@fluff.org>
Subject: [patch 7/9] DM9000: Add missing msleep() in EEPROM wait code.
Date: Mon, 16 Jun 2008 00:27:00 +0100	[thread overview]
Message-ID: <20080615232815.979179968@fluff.org.uk> (raw)
In-Reply-To: 20080615232653.642837440@fluff.org.uk

[-- Attachment #1: simtec/simtec-drivers-net-dm9000-eeprom-delay.patch --]
[-- Type: text/plain, Size: 729 bytes --]

The msleep() call in the code that checks for the
EEPROM controller's busy status was missing.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>

Index: linux-2.6.26-rc6-quilt1/drivers/net/dm9000.c
===================================================================
--- linux-2.6.26-rc6-quilt1.orig/drivers/net/dm9000.c	2008-06-16 00:07:15.000000000 +0100
+++ linux-2.6.26-rc6-quilt1/drivers/net/dm9000.c	2008-06-16 00:07:44.000000000 +0100
@@ -343,6 +343,8 @@ static int dm9000_wait_eeprom(board_info
 		if ((status & EPCR_ERRE) == 0)
 			break;
 
+		msleep(1);
+
 		if (timeout-- < 0) {
 			dev_dbg(db->dev, "timeout waiting EEPROM\n");
 			break;

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

  parent reply	other threads:[~2008-06-15 23:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15 23:26 [patch 0/9] DM9000 updates for 2.6.27 Ben Dooks
2008-06-15 23:26 ` [patch 1/9] DM9000: Remove the 2 resources probe scheme Ben Dooks
2008-06-15 23:26 ` [patch 2/9] DM9000: Add support for DM9000A and DM9000B chips Ben Dooks
2008-06-15 23:26 ` [patch 3/9] DM9000: Cleanup source code Ben Dooks
2008-06-15 23:26 ` [patch 4/9] DM9000: Cleanup source code - remove forward declerations Ben Dooks
2008-06-15 23:26 ` [patch 5/9] DM9000: Use NSR to determine link-status on internal PHY Ben Dooks
2008-06-15 23:26 ` [patch 6/9] DM9000: Allow the use of the NSR register to get link status Ben Dooks
2008-06-16 12:51   ` Ben Dooks
2008-06-15 23:27 ` Ben Dooks [this message]
2008-06-15 23:27 ` [patch 8/9] DM9000: Re-unit menuconfig entries for DM9000 driver Ben Dooks
2008-06-15 23:27 ` [patch 9/9] DM9000: Show Mbps on link change if using simple polling Ben Dooks

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=20080615232815.979179968@fluff.org.uk \
    --to=ben-linux@fluff.org \
    --cc=jeff@garzik.org \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).