netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pci-skeleton duplex check
@ 2002-12-11 13:24 Roger Luethi
  2002-12-12  2:42 ` Donald Becker
  0 siblings, 1 reply; 15+ messages in thread
From: Roger Luethi @ 2002-12-11 13:24 UTC (permalink / raw)
  To: netdev

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-12-14  1:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-11 13:24 pci-skeleton duplex check Roger Luethi
2002-12-12  2:42 ` 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

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).