netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roger Luethi <rl@hellgate.ch>
To: netdev@oss.sgi.com
Subject: pci-skeleton duplex check
Date: Wed, 11 Dec 2002 14:24:36 +0100	[thread overview]
Message-ID: <20021211132436.GA12529@k3.hellgate.ch> (raw)

pci-skeleton (and some other net drivers) figure out the duplex setting
like this (leaving duplex locks out here):

int duplex = (lpar & 0x0100) || (lpar & 0x01C0) == 0x0040;

If we get past the first condition, we already know bit 8 must be 0. Why do
we check again in the second condition?

Roger

             reply	other threads:[~2002-12-11 13:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 13:24 Roger Luethi [this message]
2002-12-12  2:42 ` pci-skeleton duplex check Donald Becker
2002-12-12 13:20   ` Roger Luethi
2002-12-12 14:11     ` Donald Becker
2002-12-12 20:32       ` Jeff Garzik
2002-12-12 21:11         ` Donald Becker
2002-12-12 21:39           ` Jeff Garzik
2002-12-13  1:18             ` Donald Becker
2002-12-13  9:17               ` David S. Miller
2002-12-13 16:56                 ` Donald Becker
2002-12-13 18:29                   ` David S. Miller
2002-12-13 20:57               ` Jeff Garzik
2002-12-12 23:08           ` Ben Greear
2002-12-14  0:19           ` Michael Richardson
2002-12-14  1:43             ` Oliver Xymoron

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=20021211132436.GA12529@k3.hellgate.ch \
    --to=rl@hellgate.ch \
    --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;
as well as URLs for NNTP newsgroup(s).