From: Upakul Barkakaty <upakul@gmail.com>
To: netdev@vger.kernel.org
Subject: mv643xx_eth: Delay required in reading the PHY registers.
Date: Wed, 6 May 2009 11:08:07 +0530 [thread overview]
Message-ID: <bb58ac4d0905052238m59ca2767i1e84d90b6abb46d4@mail.gmail.com> (raw)
In-Reply-To: <bb58ac4d0905010108n77ca98c8t59409952150c3a11@mail.gmail.com>
Hi all,
I am using the Marvell ethernet driver[mv643xx_eth]. The function
eth_port_read_smi_reg(), uses a delay in order to wait for the SMI
register to become available.
Does anyone have any clue how much time it actually takes for the SMI
register to become available? Actually I am using an older version of
the driver which does not use the udelay functions in the loops. It
rather has a "for" loop for putting a timeout. Now the gcc-4.3.1
compiler optimizes out the "for" loop. So I need to replace the "for"
loop with a delay function. Now the question is "how much delay would
be appropriate".
Any replies in this regard would be appreciated.
--
Regards,
Upakul Barkakaty
next parent reply other threads:[~2009-05-06 5:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bb58ac4d0905010108n77ca98c8t59409952150c3a11@mail.gmail.com>
2009-05-06 5:38 ` Upakul Barkakaty [this message]
2009-05-06 12:18 ` mv643xx_eth: Delay required in reading the PHY registers Lennert Buytenhek
2009-05-06 12:26 ` Upakul Barkakaty
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=bb58ac4d0905052238m59ca2767i1e84d90b6abb46d4@mail.gmail.com \
--to=upakul@gmail.com \
--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