Thread (5 messages) flat view 5 messages, 4 authors, 2007-07-19

Re: [PATCH 1/2] Fix error checking in Vitesse IRQ config

From: Andy Fleming <hidden>
Date: 2007-07-18 18:52:57
Also in: linuxppc-dev

On Jul 18, 2007, at 02:00, pradeep singh wrote:
On 7/18/07, Andy Fleming [off-list ref] wrote:
quoted
-               if (err)
+               if (err < 0)
                        return err;
but would that mean, if phy_read returns > 0 it is a success?
Yes.  phy_read() returns a 32-bit value.  If there's an error, it  
returns a negative number.  If not, it returns whatever was in the  
register (which is only 16 bits)

phy_write() returns 0 on success, and non-zero, otherwise.  In  
hindsight, it would have been better to be consistent.

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