On Jul 18, 2007, at 02:00, pradeep singh wrote: > On 7/18/07, Andy Fleming <[EMAIL PROTECTED]> wrote:
>> - 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 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev