]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
powerpc/pseries: Allow phandle to be specified in formats other than decimal
authorNathan Fontenot <nfont@austin.ibm.com>
Thu, 3 Jul 2008 03:19:24 +0000 (13:19 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 3 Jul 2008 06:58:14 +0000 (16:58 +1000)
commit4b6e805e4a327c7231ab6a7739d6344d68d231d0
treece68da6fec9244e838341c7b48e5f509dfe0e282
parent138fc1ee06e58f12fc2b755e435ce15bb36a0471
powerpc/pseries: Allow phandle to be specified in formats other than decimal

Allow the phandle passed to the /proc/ppc64/ofdt file to be specified
in formats other than decimal.  This allows us to easily specify phandle
values in hex that would otherwise appear as negative integers.

This is an issue on systems where the value of
/proc/device-tree/ibm,dynamic-reconfiguration-memory.ibm,phandle is
fffffff9.  Having to pass this to the ofdt file as a string results in
a large negative number, and simple_strtoul() does not handle negative
numbers.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/reconfig.c