[U-Boot] [PATCH V2] mvsata_ide: adjust port init sequence

Wolfgang Denk wd at denx.de
Tue Sep 7 16:06:30 CEST 2010


Dear Prafulla Wadaskar,

In message <F766E4F80769BD478052FB6533FA745D19A6879824 at SC-VEXCH4.marvell.com> you wrote:
> 
> Negative always represents errors,
> whereas positive may represent some valid return state.

He. This is _not_quite_ correct. Not in U-Boot, and not in genreal.

[But your comment asking for a negative return code is valid, of
course.]

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Zero is an enigmatic value. It can mean success (fclose)  or  failure
(scanf).  It  can  mean  black  or  white. It can mean no permissions
(chmod) or all permissions (umask). It can mean now (setjmp) or later
(atexit). It can mean the beginning (lseek) or the end (read). It can
mean myself (getpgrp) or child (fork). It can mean  all  (kill's  1st
argument)  or  nothing  (kill's  2nd argument). It can mean `default'
(SIG_IGN) or `I don't care' (waitpid) or  `try  to  guess'  (strtol).
Indeed 0 lets you talk to God (setuid).
Verily is 0 all things to all people.


More information about the U-Boot mailing list