Thread (8 messages) 8 messages, 4 authors, 2007-02-01

Re: spidernet: add improved phy support in sungem_phy.c

From: Jens Osterkamp <hidden>
Date: 2007-02-01 10:55:48
Also in: linuxppc-dev

On Tuesday 30 January 2007 11:30 pm, Linas Vepstas wrote:
Shifting to the right by 5 bits has no effect on the result
of this conditional. Either the bit is set, or its not.
There is no need to shift.
quoted
+	if ( (phy_reg & 0x0020) >> 7 ) {
You are right, I corrected this.
The result here will always be zero, since the bit,
if set, will be shifted off the end. Bits on the lef
are padded with zero.  Ergo, this is a bug.
You are right, wrong bit. I corrected this.

Jens
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help