ERR_PTR pattern in phylib
davem at davemloft.net
Thu Sep 2 05:03:49 EST 2010
From: Grant Likely <grant.likely at secretlab.ca>
Date: Wed, 1 Sep 2010 12:56:29 -0600
> The error codes in phylib are almost arbitrary and don't really give
> enough information about where the a failure lies. dev_err() is more
> useful for debugging.
If it's using bad error codes, that's only indicative of a bug in
> How about this as a compromise: I'll investigate all the users of
> phylib and if I find even one situation where the specific return code
> is actually important to a driver, then I'll back off. phylib has
> been around for 5 years now which should be enough time for that use
> case to bubble to the surface.
Sorry, I'm not agreeable to this.
If there are bugs where drivers are not checking the return
pointers correctly, please just fix those bugs. Otherwise
I see things fine as they are.
More information about the Linuxppc-dev