All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: Ivan Vecera <ivecera@redhat.com>
Cc: "Francois Romieu" <romieu@fr.zoreil.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>,
	Netdev <netdev@vger.kernel.org>,
	"Edward Hsu" <edward_hsu@realtek.com.tw>,
	"Stephen Hemminger" <shemminger@vyatta.com>
Subject: Re: [PATCH] r8169: read MAC address from EEPROM on init
Date: Thu, 25 Sep 2008 11:24:10 +0100	[thread overview]
Message-ID: <1222338250.8641.61.camel@achroite> (raw)
In-Reply-To: <48DB5C04.9050308@redhat.com>

On Thu, 2008-09-25 at 11:38 +0200, Ivan Vecera wrote:
> Francois Romieu wrote:
> > Ivan Vecera <ivecera@redhat.com> :
> > [...]
> >> OK :-), I hope the patch below is finally the right one.
> > 
> > My approval ratings won't surge today.
> > 
> > Is there a specific explanation for the 10 us delay ?
> > 
> > Realtek's 8168 / 8169 / 8101 drivers all use a (wildly copy'pasted ?)
> > 10 ms delay. I would not mind a 10 ms sleep.
> 'pci_vpd_pci22_wait' uses 100us(10x10us delay) for reading, there is 1ms
> (100x10us delay) in my patch, because 100us max. delay was too little for
> Realtek.

If the maximum delay there is too short, it should be increased.  As
I've said before, I picked a timeout that worked for me in the absence
of any time limit in the PCI specification.  I thought Stephen Hemminger
had modified it to work for sky2 but it looks like that change was
blocked by quibbling about how best to poll.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


  reply	other threads:[~2008-09-25 10:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18 13:46 [PATCH] r8169: read MAC address from EEPROM on init Ivan Vecera
2008-09-18 19:34 ` Ilpo Järvinen
2008-09-18 19:53 ` Ilpo Järvinen
2008-09-19 13:05   ` Ivan Vecera
2008-09-20 22:04     ` Ilpo Järvinen
2008-09-24  8:46       ` Ivan Vecera
2008-09-24 21:10         ` Francois Romieu
2008-09-25  9:38           ` Ivan Vecera
2008-09-25 10:24             ` Ben Hutchings [this message]
2008-09-25 11:04               ` Ivan Vecera
2008-09-25 16:44                 ` Stephen Hemminger

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=1222338250.8641.61.camel@achroite \
    --to=bhutchings@solarflare.com \
    --cc=edward_hsu@realtek.com.tw \
    --cc=ilpo.jarvinen@helsinki.fi \
    --cc=ivecera@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    --cc=shemminger@vyatta.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.