]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fixes to get the Longtrail CHRP a bit further
authorPaul Mackerras <paulus@samba.org>
Wed, 26 Oct 2005 11:52:53 +0000 (21:52 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 26 Oct 2005 11:52:53 +0000 (21:52 +1000)
commitc49888203d7a316cb947bb8a1cf2ae191f28bcd3
tree7e2962af5e6978361f04161c5d6fc3765fd21e77
parentbbd0abda9cc689a54df509aae00000bbb2a1a7d1
powerpc: Fixes to get the Longtrail CHRP a bit further

Talk about buggy firmware...  the OF on the Longtrail returns 0
from the claim client service rather than -1 when the claim fails.
It also has no device_type on the /memory node and blows up if
the output buffer for package-to-path is too big.

This also fixes a bug with calling alloc_up with align == 0, where
we did _ALIGN_UP(alloc_bottom, 0) which will end up as 0.

Lastly, we now check the return value (in r3) from calling the
prom, and return -1 from call_prom if we get a negative value back.
That is supposed to indicate that the requested client service
doesn't exist.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom_init.c
arch/ppc/boot/of1275/claim.c
arch/ppc/boot/openfirmware/chrpmain.c